#B3709. Constructing a Correct Factorial Equation

    ID: 11368 Type: Default 1000ms 256MiB

Constructing a Correct Factorial Equation

Constructing a Correct Factorial Equation

Given an integer (n), your task is to find three integers (x), (y), and (z) satisfying the following equations:

[ x - \frac{y}{z} = n!, ]

[ \frac{x - y}{z} = n. ]

It has been observed that setting (z = 2) always yields a valid solution. Under this setting, the solution can be derived as follows:

[ x = 2 \times (n! - n), \quad y = 2 \times (n! - 2n), \quad z = 2. ]

Your program should compute these values and output them. You may use this approach or any other method that produces a correct solution.

inputFormat

Input consists of a single integer (n) (for example, (1 \le n \le 12)).

outputFormat

Output three space-separated integers (x), (y), and (z) that satisfy the equations: (x - \frac{y}{z} = n!) and (\frac{x - y}{z} = n).

sample

1
0 -2 2