#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  scanf("%lld", &n);
  long long r = n % 3;
  if (r == 0) printf("1 1 %lld\n", n - 2);
  if (r == 1) printf("1 1 %lld\n", n - 2);
  if (r == 2) printf("1 2 %lld", n - 3);
}
