import sequtils, strutils let t = parseInt readLine stdin abs = t.newSeqWith stdin.readLine.split.map parseInt for ab in abs: let a = ab[0] b = ab[1] echo a.`*`(b).succ b