s=gets.chomp if s.gsub!(/ai$/,"AI") then puts s else puts s+"-AI" end