X=input()
X=int(X)

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

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