P7772 [COCI 2009/2010 #2] FAKTOR

Background

This problem is from [ $\texttt{COCI 2009-2010}\ 2^\texttt{nd}\ \texttt{round}\ \text{T1 FAKTOR}$ ](https://hsin.hr/coci/archive/2009_2010/contest2_tasks.pdf). The score is set according to the original problem, with a full score of $30$.

Description

Given $A, I$, find the smallest $N$ such that $\lceil\frac{N}{A}\rceil\geq I$.

Input Format

One line with two integers $A, I$.

Output Format

One line with one integer $N$.

Explanation/Hint

Constraints: $1\leq A,I\leq 100$. Translated by ChatGPT 5