//
// Created by lan on 2024/4/5.
//
最长单词
#include <iostream>
using namespace std;
int main() {
string res, str;
while (cin >> str) {
// str.back()返回最后一个字符,pop_back()是去掉最后一个字符
if (str.back() == '.') str.pop_back();
if (str.size() > res.size()) res = str;
}
cout << res << endl;
return 0;
}