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