P28583 [洛谷] [AHOI2002] Black and White Tiles
提高+
题目描述

Problem Description

Image 1

Image 2

Input Format

A single line containing a positive integer \( n \), where \( n \leq 20 \).

Output Format

Output the solution \( s \) in a single line (the number of digits in the solution does not exceed 200).

Sample Input and Output

Sample Input #1

1

Sample Output #1

2

Sample Input #2

2

Sample Output #2

4
输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
1
样例输出
2