ini = lambda : int(eval(input()))

inm = lambda : list(map(int,input().split()))

inl = lambda : list(map(int,input().split()))

gcd = lambda x,y : gcd(y,x%y) if x%y else y

x = ini()

if x >= 30:

        print('Yes')

else:

        print('No')

x = int(eval(input()))

if x >= 30:

  print('Yes')

else:

  print('No')
ini = lambda: int(eval(input()))
inm = lambda: list(map(int, input().split()))
inl = lambda: list(map(int, input().split()))
gcd = lambda x, y: gcd(y, x % y) if x % y else y
x = ini()
if x >= 30:
    print("Yes")
else:
    print("No")

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

-ini = lambda: int(eval(input())) -inm = lambda: list(map(int, input().split())) -inl = lambda: list(map(int, input().split())) -gcd = lambda x, y: gcd(y, x % y) if x % y else y -x = ini() +x = int(eval(input()))