s = gets.chomp if s =~ /.*ai$/ puts s.sub("ai","AI") else puts s + "-AI" end