#include #include int main(void) { int i = 0, flg = 0, judge; char str[11], temp[4]; scanf("%s", str); while(str[i] != '\0') i++; temp[0] = str[i - 2]; temp[1] = str[i - 1]; if(strcmp(temp, "ai") == 0){ str[i - 1] = 'I'; str[i - 2] = 'A'; printf("%s\n", str); }else{ printf("%s%s\n", str, "-AI"); } return 0; }