# frozen_string_literal: true s = readline.strip n = s.count('a') puts 'a' * (n + 1)