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