#include <bits/stdc++.h>
using namespace std;
int main(){
while(1){
system("data.exe > in.txt");
system("Solution.exe < in.txt > ans1.txt");
system("Baoli.exe < in.txt > Baoli.txt");
if(system("fc ans1.txt Baoli.txt"))
break;
}
return 0;
}