print("YNeos"[input()[0::2].count(" ") :: 2])