a, b = map(int, input().split())
n = int(input())
assert 1 <= a <= 10 ** 9 and 1 <= b <= 10 ** 9 and 1 <= n <= 10 ** 9