#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> s; ll m = s.size(); if(s[m-2]=='a'&&s[m-1]=='i') s[m-2]='A', s[m-1]='I'; else s += "AI"; std::cout << s << '\n'; return 0; }