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