#include <iostream>
#include <cmath>
using namespace std;

int c,i,k;

int main() {
    cin >> c >> i;
    
    for(k=0;k<=100*100+1;k++)
        if( ceil((double) k / c) == i) { cout << k << endl; break; }                   
        
    //system("pause");
}
