it depends on selection of i/p.
case i) if consider '0' is first selection i/p and '1' is 2nd ...
then EPI's=3
case ii)if consider A' is first selection i/p and A is 2nd....
then EPI's=3
In this problem both are same ,other problems it may not.
In gate exam they clearly mention on selection of i/p.no need to worry.