s = gets.chomp s<<"-" s.gsub!(/ai-/, "") s<<"AI" puts s