시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB0000.000%

문제

For each n in the integers 1..9 find the smallest m such that 1/m is a repeating decimal whose repeating part contains all the digits 0..9 except n. The repeating part might include some digits more than once.

입력

A single line containing N (1 ≤ N ≤ 9)

출력

A single line containing m and the first 25 digits of its decimal expansion after any leading zeros.

예제 입력 1

2

예제 출력 1

324 3086419753086419753086419