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