n,m,x = map(int,input().split()) print("YES") if x>=3 and m>=3 else print("NO")