n=int(eval(input()))

if n>=30:

    print("Yes")

elif n<30:

    print("No")

    
x=int(eval(input()))

if x>=30:

    print("Yes")

else:

    print("No")
n = int(eval(input()))
if n >= 30:
    print("Yes")
elif n < 30:
    print("No")

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

-n = int(eval(input())) -if n >= 30: +x = int(eval(input())) +if x >= 30: -elif n < 30: +else: