#include int main(){ int a[2]; scanf("%d%d",&a[0],&a[1]); printf("%d\n",a[1]/a[0]+(a[1]%a[0])/(a[1]%a[0])); return 0; }