x=int(input())
if 29>x>(-40):
    print('No')
elif x>=30:
    print('Yes')
elif x<-40:
    print('No')
else:
    print('No') x=int(input()) x int(input()) int input() input if 29>x>(-40):
    print('No')
elif x>=30:
    print('Yes')
elif x<-40:
    print('No')
else:
    print('No') 29>x>(-40) 29>x 29 x -40 print('No') print 'No' elif x>=30:
    print('Yes') x>=30 x 30 print('Yes') print 'Yes' elif x<-40:
    print('No') x<-40 x -40 print('No') print 'No' print('No') print 'No' x=int(input()) int(input()) x
x=int(input())
if 29>x>(-40):
    print('No')
elif x>=30:
    print('Yes')
elif x<-40:
    print('No')
else:
    print('No')