import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); sc.close(); if( s.endsWith("ai")){ System.out.println(s.replaceAll("ai$", "AI")); }else{ System.out.println(s+"-AI"); } } }