//#include #include #include using namespace std; //using namespace atcoder; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector>; Graph G; vll E; vector seen; int main() { string S; cin>>S; ll N=S.size(); if(S[N-2]=='a'&&S[N-1]=='i'){ cout<