Codeforces Round 118 (Div. 1)


A. Plant
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
1
Output
3
Input
2
Output
10
----------------------------------------------------------------------------------------------------
B. Mushroom Scientists
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
1 1 1
Output
1.0 1.0 1.0
Input
3
2 0 0
Output
3.0 0.0 0.0
----------------------------------------------------------------------------------------------------
C. Clever Fat Rat
time limit per test: 2.5 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
1
1
2
Output
Fat Rat
Input
2
2 2
1 2
4
Output
Cerealguy
Input
2
2 2
1 2
5
Output
Fat Rat
----------------------------------------------------------------------------------------------------
D. Visit of the Great
time limit per test: 3 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2
3 1 10 2
5 0 4 3
Output
0
0
----------------------------------------------------------------------------------------------------
E. Soap Time! - 2
time limit per test: 6 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
1 0
2 -2
Output
0
Input
2 2
5 -3
-4 -5
-4 0
-3 -2
Output
6
----------------------------------------------------------------------------------------------------
