There are two players $A$ and $B$.
There are two bags with $n_1$ and $n_2$ things in it.
$A$ will start the game and can take out $x$ where $1\leq x \leq \min(n_1,n_2)$ number of things from either of bags or both the bags.
A player looses the game if in his chance both the bags are empty.
Given $n_1$ and $n_2$, how to find who will win the game?