def main(): h, w, n, k = map(int, input().split()) print("YES") if __name__ == "__main__": main()