for i in range(1,1001):
    if i==666:
        print ("satan")
    elif i%3 and i%5 == 0:
        print ("fizbuz")
    elif i%5 == 0:
        print ("buz")
    elif i%3 == 0:
        print ("fiz")
    else:
        print (i)