#include <stdio.h>

int main ()
{
    int a, b, c;
    int count = 0;
    int N;

    //scanf for n, and let that be my limit
    for (a = 1; a < 15; a++)
    {
        for (b = 1; b < a; b++)
        {
            for (c = 1; c < 15; c++)
            {
                if( (a*a + b*b) == c*c)
                {
                    printf ("Found triplet: (%d, %d, %d)\n", a, b, c);
                    count++;
                }
            }
        }
    }

    printf ("Found %d number of triples....", count);


}

