a, b, n, m = map(int, input().split()) if a