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

#GL0000016. Làm giá trị tròn nhất (Make It Round)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Làm giá trị tròn nhất (Make It Round)

Make It Round

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Choose integer kk with 1≤k≤m1\le k\le m and form n⋅kn\cdot k. Maximize the number of trailing decimal zeros; among ties, maximize the product itself. Print the optimal product.

Input

One line containing n,mn,m.

Output

Print the optimal value n⋅kn\cdot k.

Subtasks

  • Subtask 1 (20 points): 1≤n,m≤1001 \le n,m \le 100
  • Subtask 2 (30 points): 1≤n,m≤1051 \le n,m \le 10^{5}
  • Subtask 3 (50 points): 1≤n,m≤1091 \le n,m \le 10^{9}

Examples

Input

10 6

Output

60

Explanation

Every 10k10k ends in at least one zero. No permitted kk yields two trailing zeros, so k=6k=6 gives the largest product 6060.