PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#GL0000165. Mua xẻng theo gói (Buying Shovels)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Mua xẻng theo gói (Buying Shovels)

Buying Shovels

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

A shop has unlimited packs of shovels. There are kk pack sizes: size ii contains exactly ii shovels, for every 1≤i≤k1\le i\le k. Polycarp wants exactly nn shovels and must buy packs of a single size. Find the minimum number of packs needed.

Input

One line containing two positive integers n,kn,k.

Output

Print the minimum possible number of packs.

Subtasks

  • Subtask 1 (20 points): 1≤n,k≤1031 \le n,k \le 10^3.
  • Subtask 2 (30 points): 1≤n,k≤1061 \le n,k \le 10^6.
  • Subtask 3 (50 points): 1≤n,k≤1091 \le n,k \le 10^9.

Examples

Input

8 7

Output

2

Explanation

Two packs containing 44 shovels each give exactly 88. One pack cannot work because a pack of size 88 is unavailable when k=7k=7.