#5708. CSES2210 计算网格数量
0
CSES2210 计算网格数量
Counting Grids
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
Example
Input
4
Output
16456