#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10;
const long long mod = 1000000007;
const long long mod2 = 998244353;
const long long inf = 8e18;
const int LOG = 22;
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  if ((n - 2) % 3 == 0) {
    cout << 1 << " " << 2 << " " << n - 3 << "\n";
  } else
    cout << 1 << " " << 1 << " " << n - 2 << "\n";
  return 0;
}
