#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 9;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  if ((n - 2) % 3 != 0)
    cout << "1 1 " << n - 2;
  else
    cout << "1 2 " << n - 3;
}
