#P7772. Minimum N Satisfying Ceiling Condition
Minimum N Satisfying Ceiling Condition
Minimum N Satisfying Ceiling Condition
Given two integers A and I, find the smallest integer N such that \(\lceil \frac{N}{A} \rceil \ge I\). The ceiling function \(\lceil x \rceil\) denotes the smallest integer greater than or equal to x.
Hint: You can derive the answer using the formula \(N = A \times (I - 1) + 1\).
inputFormat
The input consists of two space-separated integers A and I.
outputFormat
Output the minimum integer N that satisfies the condition \(\lceil \frac{N}{A} \rceil \ge I\).
sample
1 1
1