#include <bits/stdc++.h>
const int INF = 1e9 + 10;
unsigned long long MOD = 998244353;
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  unsigned long long n;
  cin >> n;
  if ((n - 2) % 3 != 0) {
    cout << 1 << " " << 1 << " " << n - 2;
  } else {
    cout << 2 << " " << 1 << " " << n - 3;
  }
  return 0;
}
