print((function (s) return s:sub(-2)=="ai" and s:sub(1,-3).."AI" or s.."-AI" end)(io.stdin:read("*l")))