#include <bits/stdc++.h>
using namespace std;
template <class U, class T>
void Max(U &first, T second) {
  if (first < second) first = second;
}
template <class U, class T>
void Min(U &first, T second) {
  if (first > second) first = second;
}
template <class T>
void add(int &a, T b) {
  a = (a + b) % 1000000007;
}
inline int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
int pow(int a, int b) {
  int ans = 1;
  while (b) {
    if (b & 1) ans = 1LL * ans * a % 1000000007;
    a = 1LL * a * a % 1000000007;
    b >>= 1;
  }
  return ans;
}
int pow(int a, int b, int c) {
  int ans = 1;
  while (b) {
    if (b & 1) ans = 1LL * ans * a % c;
    a = 1LL * a * a % c;
    b >>= 1;
  }
  return ans;
}
int main() {
  int ca = 0, T, k, i, j, m = 0, K, n;
  scanf("%d", &n);
  for (int i = 1; i < 3; i++) {
    for (int j = 1; j < 3; j++) {
      for (int k = 1; k < 3; k++) {
        m = i + j + k;
        if (m > n) continue;
        m = n - m;
        if (m % 3) continue;
        m /= 3;
        printf("%d %d %d\n", i, j, 3 * m + k);
        return 0;
      }
    }
  }
}
