#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define eps 0.000000001 #define LONG_INF 10000000000000000 #define GOLD 1.61803398874989484820458 #define MAX_MOD 1000000007 #define REP(i,n) for(long long i = 0;i < n;++i) int main() { string s; cin >> s; if (s[s.length() - 1] == 'i'&&s[s.length() - 2] == 'a') { s[s.length() - 1] = 'I'; s[s.length() - 2] = 'A'; } else { s += "-AI"; } cout << s << endl; return 0; }