i=lambda:int(input().replace('.','')) print('YNEOS'[i()