PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#GL0000106. Bài toán ƯCLN của ba số (GCD Problem)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Bài toán ƯCLN của ba số (GCD Problem)

GCD Problem

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Given a positive integer nn, find three pairwise distinct positive integers a,b,ca,b,c such that a+b+c=na+b+c=n and gcd⁡(a,b)=c\gcd(a,b)=c. A solution is guaranteed to exist. Any valid triple is accepted.

Input

One line containing integer nn.

Output

Print three integers a,b,ca,b,c in that order.

Subtasks

  • Subtask 1 (20 points): 10≤n≤10010\le n\le 100.
  • Subtask 2 (30 points): 10≤n≤10510\le n\le 10^5.
  • Subtask 3 (50 points): 10≤n≤10910\le n\le 10^9.

Examples

Input

18

Output

6 9 3

Explanation

The integers 6,9,36,9,3 are distinct, sum to 1818, and gcd⁡(6,9)=3\gcd(6,9)=3.