#include <bits/stdc++.h>
using namespace std;
long long a, b, c, e[100000], mix, l, r, o;
vector<long long> v[100000], v1;
set<long long> st;
map<long long, long long> mp;
string s;
char ch[10][10];
deque<char> dq;
int main() {
  cin >> a;
  if (a % 3 == 0) {
    cout << a - 2 << " " << 1 << " " << 1;
  } else
    cout << a - 3 << " " << 2 << " " << 1;
}
