srm 626 - div1 A - faad probability + DP