for x in range(1,301):print'aho'if x%3<1 or'3'in str(x)else x