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