https://www.acmicpc.net/problem/10250
import 'dart:io';
void main(){
int t=int.parse(stdin.readLineSync()!);
for(int i=0;i<t;i++){
String? s=stdin.readLineSync();
var v=s!.split(' ').map<int>((o)=>int.parse(o));
int h=v.elementAt(0);
int w=v.elementAt(1);
int n=v.elementAt(2);
if(n%h==0){
if(n~/h<10) print('${h}0${n~/h}');
else print('${h}${n~/h}');
}
else{
if((n~/h)+1<10) print('${n%h}0${(n~/h)+1}');
else print('${n%h}${(n~/h)+1}');
}
}
}