Spadework 2020. 2. 19. 10:54

* Solved 기준 브론즈2 단순 풀이

b,n = input().split()
print(int(b, int(n)))