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