num = int(input()) if int(num/100)==0 and int(num/10)>0: print("Yes") else: print("No")