X,Y=map(int, input().split()) x,y=map(int, input().split()) if abs(X)==abs(Y) and abs(x)