t | count = 0 | t | count = 0 |
| k = int(input()) | | k = int(input()) |
| while True: | | while True: |
| first = k * 10 ** count - k ** 2 | | first = k * 10 ** count - k ** 2 |
| second = 10 * k | | second = 10 * k |
| temp = first // (second - 1) | | temp = first // (second - 1) |
| cur_num = 10 * temp + k | | cur_num = 10 * temp + k |
| temp_one = cur_num * k | | temp_one = cur_num * k |
| temp_two = k * 10 ** count + temp | | temp_two = k * 10 ** count + temp |
| if temp_one == temp_two: | | if temp_one == temp_two: |
| break | | break |
| count += 1 | | count += 1 |
| print(cur_num) | | print(cur_num) |