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