https://www.acmicpc.net/problem/10250
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int t=s.nextInt();
for(int i=0;i<t;i++){
int h=s.nextInt();
int w=s.nextInt();
int n=s.nextInt();
if(n%h==0) System.out.format("%d%02d\n",h,n/h);
else System.out.format("%d%02d\n",n%h,(n/h)+1);
}
}
}