https://www.acmicpc.net/problem/2914
songs, avg = map(int, input().split()) print(f"{songs * (avg - 1) + 1}")