#include using namespace std; int main() { int k, s; cin >> k >> s; cout << (s/k)+(s%k) << "\n"; }