


for i in range(100,1000):
    if (i%9 == 7) and (i%5 == 2) and (i%4 ==3):
        print(i)
    else :
        pass



for i in range(100,1000):
    if (i%9 == 7) and (i%5 == 2) and (i%4 ==3):
        print(i)
    else :
        pass