#include <iostream>
using namespace std;
int main() {
for(short i = 10; i < 100; i++) {
for(short j = 10; j < 100; j++) {
if((i * i + j * j) % 13 == 0)
cout << i << " " << j << endl;
}
#include <iostream>
using namespace std;
int main() {
for(short i = 10; i < 100; i++) {
for(short j = 10; j < 100; j++) {
if((i * i + j * j) % 13 == 0)
cout << i << " " << j << endl;
}
}
}