a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
i=0
while i<10:
  i=i+1
  c=a*c-b
  print(c) a,b,c=input().split() a input().split() ().split () input split b c a=int(a) a int(a) int a b=int(b) b int(b) int b c=int(c) c int(c) int c i=0 i 0 while i<10:
  i=i+1
  c=a*c-b
  print(c) i<10 i 10 i=i+1 i i+1 i 1 c=a*c-b c a*c-b a*c a c b print(c) print c c=input().split() input().split() c i=0 0 i c=a*c-b a*c-b c c=int(c) int(c) c b=int(b) int(b) b a,b,c=input().split() input().split() a b,c=input().split() input().split() b i=i+1 i+1 i a=int(a) int(a) a
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
i=0
while i<10:
  i=i+1
  c=a*c-b
  print(c)