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