a = int(input())
if a < 30:
  print('No')
else:
  print('Yes') a = int(input()) a int(input()) int input() input if a < 30:
  print('No')
else:
  print('Yes') a < 30 a 30 print('No') print 'No' print('Yes') print 'Yes' a = int(input()) int(input()) a
a = int(input())
if a < 30:
  print('No')
else:
  print('Yes')