#include <bits/stdc++.h>
using namespace std;
int n, a, b, a1, b1;
int main() {
  cin >> n;
  a = (n - 1) / 2;
  b = (n - 1) / 2 + (n - 1) % 2;
  a1 = a % 3;
  b1 = b % 3;
  if (a1 == 1 && b1 == 0) {
    cout << 1 << " " << b - 1 << " " << a + 1;
    return 0;
  }
  if (a1 == 0 && b1 == 1) {
    cout << 1 << " " << a - 1 << " " << b + 1;
    return 0;
  }
  if (a1 == 2 && b1 == 0) {
    cout << 1 << " " << a - 1 << " " << b + 1;
    return 0;
  }
  if (a1 == 0 && b1 == 2) {
    cout << 1 << " " << b - 1 << " " << a + 1;
  }
  if (a1 == 0 && b1 == 0) {
    cout << 1 << " " << a - 1 << " " << b + 1;
    return 0;
  }
  cout << 1 << " " << a << " " << b;
}
