Problem7669--[CSES Problem Set] Counting Grids

7669: [CSES Problem Set] Counting Grids

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Your task is to count the number of different $n \times n$ grids whose each square is black or white.
Two grids are considered to be different if it is not possible to rotate one of them so that they look the same.

Input

The only input line has an integer $n$: the size of the grid.

Output

Print one integer: the number of grids modulo $10^9+7$.

Constraints

$1≤n≤10^9$

Sample 1 Input

4

Sample 1 Output

16456

HINT

相同题目:CSES 2210

Source/Category