Preparando MOJI

Hexagonal Numbers

2000ms 262144K

Description:

Hexagonal numbers are figurate numbers which can be calculated using the formula hn = 2n2 - n. You are given n; calculate n-th hexagonal number.

Input:

The only line of input contains an integer n (1 ≤ n ≤ 100).

Output:

Output the n-th hexagonal number.

Sample Input:

3

Sample Output:

15

Sample Input:

6

Sample Output:

66

Informação

Codeforces

Provedor Codeforces

Código CF188A

Tags

*special

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:37:06

Relacionados

Nada ainda