https://www.acmicpc.net/problem/10250
t=int(input()) for i in range(t): h,w,n=map(int,input().split()) if n%h==0: print("%d%02d"%(h,n/h)) else: print("%d%02d"%(n%h,(n/h)+1))