#include<bits/stdc++.h>
#define LL long long
using namespace std;
inline LL read(){
	LL res=0,fl=1;
	char ch=getchar();
	while(!(ch>='0' && ch<='9')){
		if(ch=='-')fl=-1;
		ch=getchar();
	}
	while(ch>='0' && ch<='9')res=res*10+ch-'0',ch=getchar();
	return res*fl;
}
const LL N=1e5+5;
int main(){
//	freopen(".in","r",stdin);
//	freopen(".out","w",stdout);
	int testcase=1;
	while(1){
		cout<<"testcase:"<<testcase<<'\n';
		testcase++;
		system("data.exe > in.txt");
		system("std.exe < in.txt > ans.txt");
		system("test.exe < in.txt > out.txt");
		if(system("fc ans.txt out.txt"))
			return 1;
	}
	return 0;
}
