#include #define rep(a,n) for (int a = 0; a < (n); ++a) using namespace std; using ll = long long; typedef pair P; typedef pair PP; typedef vector > Graph; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } const ll INF = 1e18; int main(){ string s; cin >> s; char from,to; rep(i,26){ if(s[i]-'a'!=i){ from = 'a'; rep(j,i)from++; to = s[i]; break; } } printf("%cto%c\n",from,to); return 0; }