<gh_stars>0
num1 = int( input() )

if num1 > 89:
    print('1')

elif num1 > 79:
    print('2')

elif num1 > 69:
    print('3')

else:
    print('4 이하?')


num1 = int( input() )

if num1 > 89:
    print('1')

elif num1 > 79:
    print('2')

elif num1 > 69:
    print('3')

else:
    print('4 이하?')