#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("-O2")
template <class T, class U>
ostream &operator<<(ostream &o, const pair<T, U> &p) {
  cout << p.first << " " << p.second;
  return o;
}
template <class T>
ostream &operator<<(ostream &o, const vector<T> &v) {
  for (auto &i : v) {
    cout << i << " ";
  }
  return o;
}
int n, m;
int main() {
  cin >> n;
  if (n % 3 == 0) {
    cout << 1 << " " << 1 << " " << n - 2 << "\n";
  } else if (n % 3 == 1) {
    cout << 1 << " " << 2 << " " << n - 3 << "\n";
  } else if (n % 3 == 2) {
    cout << 1 << " " << 2 << " " << n - 3 << "\n";
  }
  return 0;
}
