#include<Windows.h>
#include <stdio.h>
#include <math.h>
int main(){ long long p = 1; long long a; long long q; int cnt = 0; while (1){ p += 1; a = p*p - 1; if (a % 2)continue; a /= 2; q = (long long)(sqrt(a)); if (q*q == a){ printf("(%d,", p); printf("%d)\n", q); cnt++; } if (cnt == 50){ break; } }