
#include <iostream>
#include <vector>
using namespace std;

vector<string>::const_iterator longest(const vector<string>& v);

int main() {
   string p;
   vector<string> frase;
   while (cin >> p) frase.push_back(p);
   vector<string>::const_iterator i = longest(frase);
   if (i != frase.end()) {
      cout << *i << endl;
   }
}
