#include <bits/stdc++.h>
int main() {
  unsigned int n;
  unsigned short b;
  if (scanf("%u", &n) != 1) return -1;
  if (n < 3 || n > 1000000000) return -1;
  b = (n % 3 == 2 ? 2 : 1);
  printf("1 %hu %u\n", b, n - b - 1);
  return 0;
}
