#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10, INF = 0x3f3f3f3f;
char c[N];
int a[N];
int n, m;
vector<int> q;
using namespace std;
inline int read() {
  int date = 0, w = 1;
  char c = 0;
  while (c < '0' || c > '9') {
    if (c == '-') w = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    date = date * 10 + c - '0';
    c = getchar();
  }
  return date * w;
}
int main() {
  int n;
  cin >> n;
  if ((n - 2) % 3 == 0)
    printf("%d %d %d\n", 1, 2, n - 3);
  else
    printf("%d %d %d\n", 1, 1, n - 2);
  return 0;
}
