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