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