a = int(eval(input()))

if a >= 30:

    print('Yes')

else:

    print('No')

x = int(eval(input()))

if x >= 30:

    print('Yes')

else:

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

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

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