Orig Description
Kannon-Do
There is a Kannon-Do (a temple dedicated to the goddess of mercy, Kannon) on the mountain behind Ichiro's house. There are 30 steps from the base to the Kannon-Do, and Ichiro goes to the Kannon-Do to play almost every day. Ichiro can climb up to three steps with one step. While playing, Ichiro noticed that there are many ways to climb the steps (various numbers of steps to skip).
Therefore, he decided to climb up the steps in 10 different ways every day and try all the ways. However, as a mathematician, you should know that this will take Ichiro's entire life.
To convince Ichiro that his plan is impossible, write a program that takes the number of steps n as input and outputs the number of years it would take for Ichiro to climb all the steps in 10 different ways per day. Assume that a year has 365 days. If at least one day is necessary, it is counted as one year. If there are 365 days, it is one year, and if there are 366 days, it is two years.
Input
The input is a sequence of multiple datasets. The end of the input is indicated by a single zero line.
For each dataset, a single integer n (1 ≤ n ≤ 30) representing the number of steps is given on a line.
There are no more than 30 datasets.
Output
For each dataset, output the number of years (an integer) required for Ichiro to climb all the steps in all 10 ways on a single line.
Sample Input
1
10
20
25
0
Output for the Sample Input
1
1
34
701
Extracted Specification
An integer n (1 ≤ n ≤ 30), representing some quantity or size.
The input is a sequence of multiple datasets. The end of the input is indicated by a single zero line.
There are no more than 30 datasets.
### Example Input:
```
1
10
20
25
0
```
### Function Signature:
Write a function f(inputs) that takes in the input.
def f(inputs: List[int]):
'''
inputs: a list of integers
'''
Test Case Generator
Certainly! Below is a test case generator for the "Kannon-Do" problem. This generator will create multiple datasets with varying values of `n` and ensure that the end of the input is indicated by a single zero line.
```python
import random
def tcgen():
datasets = []
num_datasets = random.randint(1, 30) # The number of datasets (up to 30)
for _ in range(num_datasets):
n = random.randint(1, 30)
datasets.append(n)
# Append the terminating zero line
datasets.append(0)
return datasets
# Example usage
test_cases = tcgen()
for case in test_cases:
print(case)
```
This test case generator produces a random number of datasets (between 1 and 30), each with a random integer `n` (between 1 and 30), and appends a terminating zero to the end. You can run this generator to create a variety of input scenarios for testing the "Kannon-Do" problem.
Extract Arguments
def extract_arguments(fh):
datasets = []
while True:
n = int(fh.readline().strip())
if n == 0:
break
datasets.append(n)
return datasets