using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            int a = int.Parse(Console.ReadLine());

            for (int i = 1; i <= a; i++) {
                for (int j = i; j <= a; j++) {
                    for (int k = j; k <= a; k++) {
                        if (i*i + j*j == k*k) {
                            Console.WriteLine(i + " " + j + " " + k);
                        }
                    }
                }
            }
        }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: