Codeforces Round 260 (Div. 2)


A. Laptops
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2
1 2
2 1
Output
Happy Alex
----------------------------------------------------------------------------------------------------
B. Fedya and Maths
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4
Output
4
Input
124356983594583453458888889
Output
0
----------------------------------------------------------------------------------------------------
C. Boredom
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2
1 2
Output
2
Input
3
1 2 3
Output
4
Input
9
1 2 1 3 2 2 2 2 3
Output
10
----------------------------------------------------------------------------------------------------
D. A Lot of Games
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2 3
a
b
Output
First
Input
3 1
a
b
c
Output
First
Input
1 2
ab
Output
Second
----------------------------------------------------------------------------------------------------
E. Civilization
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

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