A = int(input())

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

if A >= 30:
    print('Yes')
else:
    print('No')