https://www.acmicpc.net/problem/10250
import java.util.*;
import java.lang.String.format
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var t=s.nextInt()
for(i in 0 until t){
var h=s.nextInt()
var w=s.nextInt()
var n=s.nextInt()
if(n%h==0) println(format("%d%02d",h,n/h))
else println(format("%d%02d",n%h,(n/h)+1))
}
}