import java.util.*; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); if(s.substring(s.length()-2).equals("ai")) System.out.println(s.substring(0, s.length()-2) + "AI"); else System.out.println(s + "-AI"); } }