#! /usr/bin/env python3 N = int(input()) a = b = c = 1 n = N - 2 c = n while 1: if a + b + c == N : print(a, b, c) if b < c - 1: b += 1 c -= 1 elif b == c - 1: a = 2 b = 2 n -= 2 c = n elif a < b - 1: a += 1 b -= 1 else: break