s = input().split( ) a = int(s[0]) b = int(s[1]) if a % b == 0: print(a // b + 1) else: if(a % b > 1): print(a // b + 2) else: print(a // b)