#include <bits/stdc++.h>
using namespace std;
int n;
int32_t main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  cerr << "HELLO WORLD\n";
  cin >> n;
  cout << "1 ";
  if ((n - 2) % 3) return cout << 1 << ' ' << n - 2 << '\n', false;
  return cout << 2 << ' ' << n - 3 << '\n', false;
}
