import sys
r, D, x2000 = map(int, sys.stdin.readline().split())
x2001 = r * x2000 - D
x2002 = r * x2001 - D
x2003 = r * x2002 - D
x2004 = r * x2003 - D
x2005 = r * x2004 - D
x2006 = r * x2005 - D
x2007 = r * x2006 - D
x2008 = r * x2007 - D
x2009 = r * x2008 - D
x2010 = r * x2009 - D
print(x2001)
print(x2002)
print(x2003)
print(x2004)
print(x2005)
print(x2006)
print(x2007)
print(x2008)
print(x2009)
print(x2010) import sys sys r, D, x2000 = map(int, sys.stdin.readline().split()) r map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split D x2000 x2001 = r * x2000 - D x2001 r * x2000 - D r * x2000 r x2000 D x2002 = r * x2001 - D x2002 r * x2001 - D r * x2001 r x2001 D x2003 = r * x2002 - D x2003 r * x2002 - D r * x2002 r x2002 D x2004 = r * x2003 - D x2004 r * x2003 - D r * x2003 r x2003 D x2005 = r * x2004 - D x2005 r * x2004 - D r * x2004 r x2004 D x2006 = r * x2005 - D x2006 r * x2005 - D r * x2005 r x2005 D x2007 = r * x2006 - D x2007 r * x2006 - D r * x2006 r x2006 D x2008 = r * x2007 - D x2008 r * x2007 - D r * x2007 r x2007 D x2009 = r * x2008 - D x2009 r * x2008 - D r * x2008 r x2008 D x2010 = r * x2009 - D x2010 r * x2009 - D r * x2009 r x2009 D print(x2001) print x2001 print(x2002) print x2002 print(x2003) print x2003 print(x2004) print x2004 print(x2005) print x2005 print(x2006) print x2006 print(x2007) print x2007 print(x2008) print x2008 print(x2009) print x2009 print(x2010) print x2010 x2010 = r * x2009 - D r * x2009 - D x2010 x2000 = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) x2000 x2006 = r * x2005 - D r * x2005 - D x2006 x2009 = r * x2008 - D r * x2008 - D x2009 x2007 = r * x2006 - D r * x2006 - D x2007 x2004 = r * x2003 - D r * x2003 - D x2004 x2001 = r * x2000 - D r * x2000 - D x2001 r, D, x2000 = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) r D, x2000 = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) D x2002 = r * x2001 - D r * x2001 - D x2002 x2005 = r * x2004 - D r * x2004 - D x2005 x2008 = r * x2007 - D r * x2007 - D x2008 x2003 = r * x2002 - D r * x2002 - D x2003
import sys
r, D, x2000 = map(int, sys.stdin.readline().split())
x2001 = r * x2000 - D
x2002 = r * x2001 - D
x2003 = r * x2002 - D
x2004 = r * x2003 - D
x2005 = r * x2004 - D
x2006 = r * x2005 - D
x2007 = r * x2006 - D
x2008 = r * x2007 - D
x2009 = r * x2008 - D
x2010 = r * x2009 - D
print(x2001)
print(x2002)
print(x2003)
print(x2004)
print(x2005)
print(x2006)
print(x2007)
print(x2008)
print(x2009)
print(x2010)