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