#include int main(){ long long int a, b; int i = 0; int j = 0; scanf("%d",&a); scanf("%d",&b); while(j < b){ j = i * a; i = i + 1; } printf("%d",j); return 0; }