i = list(map(int,input().split("."))) print("YES"if i>=i else "NO" )