#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  n % 3 == 2 ? cout << "1 2 " << n - 3 << "\n"
             : cout << "1 1 " << n - 2 << "\n";
}
