c,b,i=[int(x) for x in raw_input().split(':')] for j in [0]*c:print b;b=b+b*i/100