a = int(eval(input()))

if a >= 30:

	print("Yes")

else:

	print("No")

if int(eval(input())) >= 30:

	print("Yes")

else:

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

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

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