#!/usr/bin/env python3
import sys

k, s = [int(v) for v in sys.stdin.readline().split(' ')]

print(s // k + s % k)
