Codeforces Beta Round 1


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

Examples
Input
6 6 4
Output
4
----------------------------------------------------------------------------------------------------
B. Spreadsheets
time limit per test: 10 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
2
R23C55
BC23
Output
BC23
R23C55
----------------------------------------------------------------------------------------------------
C. Ancient Berland Circus
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
0.000000 0.000000
1.000000 1.000000
0.000000 1.000000
Output
1.00000000
----------------------------------------------------------------------------------------------------
