#174 A
X = input()
print('Yes') if int(X)> 29 else print('No') X = input() X input() input print('Yes') if int(X)> 29 else print('No') int(X)> 29 int(X) int X 29 print('Yes') print 'Yes' print('No') print 'No' X = input() input() X
#174 A
X = input()
print('Yes') if int(X)> 29 else print('No')