#K93552. Alternating Sum Sequence

    ID: 38444 Type: Default 1000ms 256MiB

Alternating Sum Sequence

Alternating Sum Sequence

Given a positive integer n, compute the n-th term in the Alternating Sum Sequence, defined as:

$$a_1 = 415,\; a_2 = 35214,\; a_3 = 78135,\; a_4 = 3627.$$

If n is not one of these (i.e. not 1, 2, 3, or 4), output an error message in the following format:

Error: The n-th term in the Alternating Sum Sequence is not predefined.

inputFormat

The input consists of a single line from standard input containing one integer n.

outputFormat

If n is 1, 2, 3, or 4, output the corresponding term of the sequence via standard output. Otherwise, output the error message exactly in the form:

Error: The n-th term in the Alternating Sum Sequence is not predefined.

Note: In the error message, replace n with the input number.

## sample
1
415