Codeforces Round 156 (Div. 1)


A. Almost Arithmetical Progression
time limit per test: 5.0 s
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2
3 5
Output
2
Input
4
10 20 10 30
Output
3
----------------------------------------------------------------------------------------------------
B. Mr. Bender and Square
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
6 4 3 1
Output
0
Input
9 3 8 10
Output
2
----------------------------------------------------------------------------------------------------
C. Furlo and Rublo and Game
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
1
1
Output
Rublo
Input
2
1 2
Output
Rublo
Input
10
1 2 3 4 5 6 7 8 9 10
Output
Furlo
----------------------------------------------------------------------------------------------------
D. Liars and Serge
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
1 1
Output
0
Input
2 1
Output
2
----------------------------------------------------------------------------------------------------
E. Lucky Arrays
time limit per test: 4 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3 10
1 1 0
1 0 0
1 1 1
1 1
1 3
2 2
3 0
2 1
3 0
3 1
2 0
3 1
1 0
Output
3
6
1
1
2
2
1
3
3
6
----------------------------------------------------------------------------------------------------
