text: #include <assert.h>
  #include <ctype.h>
  #include <limits.h>
  #include <math.h>
  #include <stdbool.h>
  #include <stddef.h>
  #include <stdint.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
  
  char* readline();
  char* ltrim(char*);
  char* rtrim(char*);
  
  int parse_int(char*);
  
  /*
   * Complete the 'pythagoreanTriple' function below.
   *
   * The function is expected to return an INTEGER_ARRAY.
   * The function accepts INTEGER a as parameter.
   */
  
  /*
   * To return the integer array from the function, you should:
   *     - Store the size of the array to be returned in the result_count variable
   *     - Allocate the array statically or dynamically
   *
   * For example,
   * int* return_integer_array_using_static_allocation(int* result_count) {
   *     *result_count = 5;
   *
   *     static int a[5] = {1, 2, 3, 4, 5};
   *
   *     return a;
   * }
   *
   * int* return_integer_array_using_dynamic_allocation(int* result_count) {
   *     *result_count = 5;
   *
   *     int *a = malloc(5 * sizeof(int));
   *
   *     for (int i = 0; i < 5; i++) {
   *         *(a + i) = i + 1;
   *     }
   *
   *     return a;
   * }
   *
   */
  typedef unsigned long long ull;
   
  ull* pythagoreanTriple(ull a, ull* result_count) {
      * result_count = 3;
      ull* result = (ull*)malloc(3*sizeof(ull));
      ull side_1 = a;
      long long side_2, side_3, k;
      if(side_1 <= 2)
      {
          result[0] = result[1] = result[2] = 0;
          return result;
      }
  
      if(side_1%2 == 0)
      {
          k = (side_1*1ll*side_1)/4;
          side_2 = (k - 1);
          side_3 = (k + 1);
      }
      else
      {
          k = ( (side_1*1LL*side_1) - 1)/2;
          side_2 = k;
          side_3 =(k + 1);
      }
      result[0] = side_1;
      result[1] = side_2;
      result[2] = side_3;
      return result;
  }
  
  int main()
  {
      FILE* fptr = fopen(getenv("OUTPUT_PATH"), "w");
  
      int a = parse_int(ltrim(rtrim(readline())));
  
      ull triple_count;
      ull* triple = pythagoreanTriple(a, &triple_count);
  
      for (ull i = 0; i < triple_count; i++) {
          fprintf(fptr, "%llu", *(triple + i));
  
          if (i != triple_count - 1) {
              fprintf(fptr, " ");
          }
      }
  
      fprintf(fptr, "\n");
  
      fclose(fptr);
  
      return 0;
  }
  
  char* readline() {
      size_t alloc_length = 1024;
      size_t data_length = 0;
  
      char* data = malloc(alloc_length);
  
      while (true) {
          char* cursor = data + data_length;
          char* line = fgets(cursor, alloc_length - data_length, stdin);
  
          if (!line) {
              break;
          }
  
          data_length += strlen(cursor);
  
          if (data_length < alloc_length - 1 || data[data_length - 1] == '\n') {
              break;
          }
  
          alloc_length <<= 1;
  
          data = realloc(data, alloc_length);
  
          if (!data) {
              data = '\0';
  
              break;
          }
      }
  
      if (data[data_length - 1] == '\n') {
          data[data_length - 1] = '\0';
  
          data = realloc(data, data_length);
  
          if (!data) {
              data = '\0';
          }
      } else {
          data = realloc(data, data_length + 1);
  
          if (!data) {
              data = '\0';
          } else {
              data[data_length] = '\0';
          }
      }
  
      return data;
  }
  
  char* ltrim(char* str) {
      if (!str) {
          return '\0';
      }
  
      if (!*str) {
          return str;
      }
  
      while (*str != '\0' && isspace(*str)) {
          str++;
      }
  
      return str;
  }
  
  char* rtrim(char* str) {
      if (!str) {
          return '\0';
      }
  
      if (!*str) {
          return str;
      }
  
      char* end = str + strlen(str) - 1;
  
      while (end >= str && isspace(*end)) {
          end--;
      }
  
      *(end + 1) = '\0';
  
      return str;
  }
  
  int parse_int(char* str) {
      char* endptr;
      int value = strtol(str, &endptr, 10);
  
      if (endptr == str || *endptr != '\0') {
          exit(EXIT_FAILURE);
      }
  
      return value;
  }
  