#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, res = 0;
  vector<long long> mas;
  cin >> n;
  long long i = 1;
  while ((n - 1 - i) % 3 == 0 || i % 3 == 0) {
    i++;
  }
  cout << 1 << ' ' << i << " " << n - i - 1;
  return 0;
}
