Skip to content

Baekjoon 13410

1. Problem

문제 확인하기

2. Solution

N, K = map(int, input().split())
lst = [int(str(N*i)[::-1]) for i in range(1, K+1)]
print(max(lst))