from sys import stdin def main(): input = lambda: stdin.readline()[:-1] N = int(input()) if 9 < N < 100: print("Yes") else: print("No") main()