#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<string> findOcurrences(string text, string first, string second) {
vector<string> res;
vector<string> v;
for(int start = 0, i = start + 1; i <= text.size(); i ++)
if(i == text.size() || text[i] == ' '){
string word = text.substr(start, i - start);
if(v.size() >= 2 && v[v.size() - 2] == first && v[v.size() - 1] == second)
res.push_back(word);
v.push_back(word);
start = i;
i = start;
}
return res;
}
};
int main() {
return 0;
}