class Main def start main(input) end private def main(s) puts "a" * (s.count("a") + 1) end def input gets end end Main.new.start