#include <bits/stdc++.h>
using namespace std;
char s[256];
int main()
{
cin >> s;
unsigned int n=strlen(s);
while(true)
{
if(strlen(s)==4 and s[0]=='s' and s[1]=='t' and s[2]=='o' and s[3]=='p')
break;
if(strlen(s)>n) cout << s << endl;
cin >> s;
}
return 0;
}