#include <bits/stdc++.h>
using namespace std;
void ShellSort(int n, int mass[]);
int main() {
  ios_base::sync_with_stdio(false);
  long long int n;
  cin >> n;
  long long int rem;
  rem = n % 3;
  if (rem == 0 || rem == 1) {
    cout << 1 << ' ' << 1 << ' ' << n - 2;
  } else {
    cout << 2 << ' ' << 2 << ' ' << n - 4;
  }
  return 0;
}
