#!/usr/bin/env python3
import sys


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  # type: int
    D= int(next(tokens))  # type: int
    X= int(next(tokens))  # type: int
    for i in range(10):
        X = r*X - D
        print(X)
    pass

if __name__ == '__main__':
    main() import sys sys def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  # type: int
    D= int(next(tokens))  # type: int
    X= int(next(tokens))  # type: int
    for i in range(10):
        X = r*X - D
        print(X)
    pass main def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
     iterate_tokens for line in sys.stdin:
            for word in line.split():
                yield word
     line sys.stdin sys stdin for word in line.split():
                yield word
     word line.split() line.split line split yield word word tokens = iterate_tokens() tokens iterate_tokens() iterate_tokens r = int(next(tokens)) r int(next(tokens)) int next(tokens) next tokens D= int(next(tokens)) D int(next(tokens)) int next(tokens) next tokens X= int(next(tokens)) X int(next(tokens)) int next(tokens) next tokens for i in range(10):
        X = r*X - D
        print(X)
     i range(10) range 10 X = r*X - D X r*X - D r*X r X D print(X) print X if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  # type: int
    D= int(next(tokens))  # type: int
    X= int(next(tokens))  # type: int
    for i in range(10):
        X = r*X - D
        print(X)
    pass def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  # type: int
    D= int(next(tokens))  # type: int
    X= int(next(tokens))  # type: int
    for i in range(10):
        X = r*X - D
        print(X)
    pass main
#!/usr/bin/env python3
import sys


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  # type: int
    D= int(next(tokens))  # type: int
    X= int(next(tokens))  # type: int
    for i in range(10):
        X = r*X - D
        print(X)
    pass

if __name__ == '__main__':
    main()
