#include <bits/stdc++.h>
using namespace std;
int testCase;
int iinf = 1e9 + 1;
long long inf = 1e16 + 1;
void solve() {
  long long n;
  cin >> n;
  if (n % 3 == 0) {
    cout << "1 1 " << n - 2 << "\n";
  } else {
    cout << "1 2 " << n - 3 << "\n";
  }
}
int main() {
  testCase = 1;
  while (testCase--) {
    solve();
  };
}
