// UUID: 491de1ad-40bc-4567-aab2-5af2853cb314
#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
void solve()
{
int A, B;
cin >> A >> B;
if (A == 33 && B <= 30) {
int Bm = B;
cout << "11 " << min(10, Bm) << endl;
Bm -= min(10, Bm);
cout << "11 " << min(10, Bm) << endl;
Bm -= min(10, Bm);
cout << "11 " << Bm << endl;
}
else if (A >= 33 && A <= 43 && B >= 11 && B <= 41){
int Bm = B -11;
cout << "11 " << min(10, Bm) << endl;
Bm -= min(10, Bm);
cout << "11 " << min(10, Bm) << endl;
Bm -= min(10, Bm);
cout << "11 " << Bm << endl;
cout << A-33 << " 11" << endl;
}
else if (A >= 33 && A <= 53 && B >= 22 && B <= 52){
int Bm = B - 22;
int Am = A - 33;
cout << "11 " << min(10, Bm) << endl;
Bm -= min(10, Bm);
cout << "11 " << min(10, Bm) << endl;
Bm -= min(10, Bm);
cout << "11 " << Bm << endl;
cout << min(10, A_maradek) << " 11" << endl;
Am -= min(10, Am);
cout << Am << " 11" << endl;
}
else {
cout << "-1 -1" << '\n';
}
}
int main() {
int n;
cin >> n;
for (int i = 0; i < n ; i++){
solve();
}
}
open /var/local/lib/isolate/404/box/a.out: no such file or directory
main.cpp: In function 'void solve()':
main.cpp:39:33: error: 'A_maradek' was not declared in this scope
39 | cout << min(10, A_maradek) << " 11" << endl;
| ^~~~~~~~~