#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, a[3], i, j;
  cin >> t;
  if (t % 3 == 0 || t % 3 == 1) {
    cout << t - 2 << " " << 1 << " " << 1;
  } else {
    cout << t - 3 << " " << 2 << " " << 1;
  }
}
