#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  switch (n % 3) {
    case 0:
      cout << "1 1 " << n - 2;
      break;
    default:
      cout << "1 2 " << n - 3;
  }
  return 0;
}
