import math

S, F = map(int, input().split())
print([2, math.ceil(S/F)][S != F])