deg = int(eval(input()))



if deg >= 30:

    print("Yes")

else:

    print("No")

n = int(eval(input()))



if n < 30:

    print("No")

else:

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

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

-deg = int(eval(input())) -if deg >= 30: +n = int(eval(input())) +if n < 30: +    print("No") +else: -else: -    print("No")