X = int(eval(input()))

if (X >= 30):

  print("Yes")

else:

  print("No")
x=int(eval(input()))

if x >= 30:

  print("Yes")

else:

  print("No")
X = int(eval(input()))
if X >= 30:
    print("Yes")
else:
    print("No")

x = int(eval(input()))
if x >= 30:
    print("Yes")
else:
    print("No")

-X = int(eval(input())) -if X >= 30: +x = int(eval(input())) +if x >= 30: