#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  long long n;
  cin >> n;
  if (n % 3 != 2)
    printf("1 1 %lld\n", n - 2);
  else if (n % 3 == 2)
    printf("2 2 %lld\n", n - 4);
  return 0;
}
