a=int(eval(input()))

if a>=30:

    print("Yes")

else:

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

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

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

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