1623: 过河卒

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:96 Solved:23

Description

棋盘上 lns="http://www.w3.org/1998/Math/MathML">A 点有一个过河卒,需要走到目标 lns="http://www.w3.org/1998/Math/MathML">B 点。卒行走的规则:可以向下、或者向右。同时在棋盘上 lns="http://www.w3.org/1998/Math/MathML">C 点有一个对方的马,该马所在的点和所有跳跃一步可达的点称为对方马的控制点。因此称之为“马拦过河卒”。

棋盘用坐标表示,lns="http://www.w3.org/1998/Math/MathML">A 点 lns="http://www.w3.org/1998/Math/MathML">(0, 0)lns="http://www.w3.org/1998/Math/MathML">B 点 lns="http://www.w3.org/1998/Math/MathML">(n, m),同样马的位置坐标是需要给出的。

现在要求你计算出卒从 lns="http://www.w3.org/1998/Math/MathML">A 点能够到达 lns="http://www.w3.org/1998/Math/MathML">B 点的路径的条数,假设马的位置是固定不动的,并不是卒走一步马走一步。

Input

一行四个正整数,分别表示 lns="http://www.w3.org/1998/Math/MathML">B 点坐标和马的坐标。

Output

一个整数,表示所有的路径条数。

Sample Input Copy

6 6 3 3

Sample Output Copy

6