print(('Yes' if int(eval(input())) >= 30 else 'No'))
print(('YNeos'[int(eval(input()))<30::2]))
print(("Yes" if int(eval(input())) >= 30 else "No"))

print(("YNeos"[int(eval(input())) < 30 :: 2]))

-print(("Yes" if int(eval(input())) >= 30 else "No")) +print(("YNeos"[int(eval(input())) < 30 :: 2]))