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