#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  cout << "1 ";
  if ((n - 2) % 3 == 0) {
    cout << "2 " << n - 3 << endl;
  } else {
    cout << "1 " << n - 2 << endl;
  }
  return 0;
}
