import sys input = sys.stdin.readline A,B,N,M=map(int,input().split()) if A