X = int(input())

print("Yes") if X >= 30 else print("No")

X = int(eval(input()))

if X >= 30:

    print("Yes")

else:

    print("No")

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

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

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