x = int(input())
t = False

if x >= 30:
  t = True

if t == True:
  print('Yes')
else:
  print('No') x = int(input()) x int(input()) int input() input t = False t False if x >= 30:
  t = True x >= 30 x 30 t = True t True if t == True:
  print('Yes')
else:
  print('No') t == True t True print('Yes') print 'Yes' print('No') print 'No' x = int(input()) int(input()) x t = False False t t = True True t
x = int(input())
t = False

if x >= 30:
  t = True

if t == True:
  print('Yes')
else:
  print('No')