a,b,c,d=map(int,input().split()) x=0;y=0 while 0