#include #include #include #include #include #include #include using namespace std; typedef pair P; int main() { cin.tie(0); ios::sync_with_stdio(false); vector

v; string s; cin >> s; int n = s.size(), p = 0; while(p < n && s[p] == -126 && s[p + 1] == -105) p += 2; int m = 0; while(p < n) { string t; while(p < n && !(s[p] == -126 && s[p + 1] == -105)) { t += s[p]; t += s[p + 1]; p += 2; } int wc = 0; while(p < n && s[p] == -126 && s[p + 1] == -105) { wc++; p += 2; } m = max(m, wc); v.emplace_back(wc, t); } if(v.size() == 0 || m == 0) { cout << endl; } else { for(P val : v) { if(m == val.first) { cout << val.second << endl; } } } }