https://www.acmicpc.net/problem/2914
using System; class Program { static void Main() { string[] s=Console.ReadLine().Split(' '); int a=int.Parse(s[0]); int i=int.Parse(s[1]); Console.Write(a*(i-1)+1); } }