https://www.acmicpc.net/problem/2914
import java.util.*; fun main(args: Array<String>) { val s=Scanner(System.`in`) var a=s.nextInt() var i=s.nextInt() print(a*(i-1)+1) }