#include <iostream>
using namespace std;
int main()
{
int n,i,j,k;
n=100;
for(i=1;i<=n;i++)
{
for(j=i;j<=n;j++)
{
for(k=j;k<=n;k++)
{
if(i*i+j*j==k*k)
cout << i<<","<<j<<","<<k<< endl;
}
}
}
return 0;
}