#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 1e5 + 5, MOD = 1e9 + 7;
const ll INF = 1e18 + 17;
int n;
void solve() {
  cin >> n;
  if ((n - 2) % 3 != 0) {
    cout << "1 1 " << n - 2;
  } else {
    cout << "1 2 " << n - 3;
  }
}
int main() {
  ios ::sync_with_stdio(0);
  cin.tie(0);
  int tt = 1;
  while (tt--) {
    solve();
    cout << '\n';
  }
  return 0;
}
