puts gets.chomp =~ /ai$/ ? $_.gsub(/ai$/, 'AI') : "#{$_.chomp}-AI"