#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] = str[i - 2] = '\0'; printf("%s%s\n", str, "AI"); }else{ printf("%s%s\n", str, "-AI"); } return 0; }