X = int(input())

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

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