z = int(input())
if z >= 30:
    print('Yes')
else:
    print('No') z = int(input()) z int(input()) int input() input if z >= 30:
    print('Yes')
else:
    print('No') z >= 30 z 30 print('Yes') print 'Yes' print('No') print 'No' z = int(input()) int(input()) z
z = int(input())
if z >= 30:
    print('Yes')
else:
    print('No')