import strscans let (_, a, b) = stdin.readAll.scanTuple"$i $i" var dp: array[605, bool] for i in 0..a: dp[i] = true for j in 0..