import sequtils,strutils var t,B,N : int proc pow(a, b : int) :int= if b == 0: return 1 elif b == 1: return a elif b mod 2 == 0: return pow(a * a, b div 2) else: return pow(a, b - 1) * a (t, B) = stdin.readline.split.map(parseInt) B *= -1 for i in 0..