Contest Duration: - (local time) (100 minutes) Back to Home
B - 326-like Numbers /

Time Limit: 2 sec / Memory Limit: 1024 MB

### 問題文

3 桁の正整数であって、百の位の数と十の位の数の積が一の位の数と等しいものを 326-like number と呼びます。

### 制約

• 100 \leq N \leq 919
• N は整数である

### 入力

N


### 入力例 1

320


### 出力例 1

326


320,321,322,323,324,325 は 326-like number ではなく、326 は 326-like number です。

### 入力例 2

144


### 出力例 2

144


144 は 326-like number です。

### 入力例 3

516


### 出力例 3

600


Score : 200 points

### Problem Statement

A 326-like number is a three-digit positive integer where the product of the hundreds and tens digits equals the ones digit.

For example, 326,400,144 are 326-like numbers, while 623,777,429 are not.

Given an integer N, find the smallest 326-like number greater than or equal to N. It always exists under the constraints.

### Constraints

• 100 \leq N \leq 919
• N is an integer.

### Input

The input is given from Standard Input in the following format:

N


### Sample Input 1

320


### Sample Output 1

326


320,321,322,323,324,325 are not 326-like numbers, while 326 is a 326-like number.

### Sample Input 2

144


### Sample Output 2

144


144 is a 326-like number.

### Sample Input 3

516


### Sample Output 3

600