A, B, C, D = map(int, input().split()) if B