x = int(input())
b = x - 30
if b >= 0:
  print('Yes')
else:
  print("No") x = int(input()) x int(input()) int input() input b = x - 30 b x - 30 x 30 if b >= 0:
  print('Yes')
else:
  print("No") b >= 0 b 0 print('Yes') print 'Yes' print("No") print "No" b = x - 30 x - 30 b x = int(input()) int(input()) x
x = int(input())
b = x - 30
if b >= 0:
  print('Yes')
else:
  print("No")