#include <bits/stdc++.h>
using namespace std;
const long long INF = 10000005;
const int N = 1e5 + 5;
const int MAX = 1e5 + 50;
int main() {
  long long n;
  cin >> n;
  long long a = 1, b = 1, c = n - 2;
  if (c % 3 == 0) {
    b++;
    c--;
  }
  cout << a << " " << b << " " << c << endl;
}
