#include #include using namespace std; int main() { string s; cin >> s; int len = s.size(); if (s.substr(len - 2, 2) == "ai") { cout << s.substr(0, len - 2) << "AI" << endl; } else { cout << s << "-AI" << endl; } }