#!/bin/python3 import sys def countArray(n, k, x): if x==k-1: return k elif x< k-1: return x+1 + x*(k-1) if __name__ == "__main__": n, k, x = input().strip().split(' ') n, k, x = [int(n), int(k), int(x)] answer = countArray(n, k, x) print(answer)