#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e2 + 10;
int n;
int main() {
  while (~scanf("%d", &n)) {
    if (n % 3 == 0)
      printf("1 1 %d\n", n - 2);
    else
      printf("1 2 %d\n", n - 3);
  }
  return 0;
}
