#C5182. Nth Term of Doubling Sequence

    ID: 48803 Type: Default 1000ms 256MiB

Nth Term of Doubling Sequence

Nth Term of Doubling Sequence

Given a positive integer n, compute the nth term of a sequence defined by a simple recurrence relation. The sequence starts with 1, and each subsequent term is obtained by doubling the previous term and then adding 1. In mathematical terms, the nth term is given by the formula: \(2^n - 1\).

For example, when n = 4, the term is 15 because \(2^4 - 1 = 15\>.

inputFormat

The input consists of a single integer n provided on standard input. You can assume that 1 ≤ n ≤ 50.

outputFormat

Output the nth term of the sequence to standard output.

## sample
1
1