n,m,p,q=map(int,input().split()) p-=1 ans=0 cur=0 while 0