#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  long long n;
  cin >> n;
  if (n % 3 == 0) {
    cout << 1 << " " << 1 << " " << n - 2;
    return 0;
  }
  if (n % 3 == 1) {
    cout << 1 << " " << 1 << " " << n - 2;
    return 0;
  }
  if (n % 3 == 2) {
    cout << 1 << " " << 2 << " " << n - 3;
    return 0;
  }
  return 0;
}
