a,b,c=map(int,input().split())
def f(n):
  if(n==2000):
    return(c);
  return(a*(f(n-1))-b)
for i in range (2001,2011):
  print(f(i)) a,b,c=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c def f(n):
  if(n==2000):
    return(c);
  return(a*(f(n-1))-b) f if(n==2000):
    return(c);
   n==2000 n 2000 return(c) c return(a*(f(n-1))-b) a*(f(n-1))-b a*(f(n-1)) a f(n-1) f n-1 n 1 b n n for i in range (2001,2011):
  print(f(i)) i range (2001,2011) range 2001 2011 print(f(i)) print f(i) f i a,b,c=map(int,input().split()) map(int,input().split()) a b,c=map(int,input().split()) map(int,input().split()) b def f(n):
  if(n==2000):
    return(c);
  return(a*(f(n-1))-b) def f(n):
  if(n==2000):
    return(c);
  return(a*(f(n-1))-b) f c=map(int,input().split()) map(int,input().split()) c
a,b,c=map(int,input().split())
def f(n):
  if(n==2000):
    return(c);
  return(a*(f(n-1))-b)
for i in range (2001,2011):
  print(f(i))