#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (!a) return b;
  return gcd(b % a, a);
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (n % 3 == 0 || n % 3 == 1)
    cout << 1 << " " << 1 << " " << n - 2;
  else
    cout << 1 << " " << 2 << " " << n - 3;
  return 0;
}
