LA 3288

3288 - Harmonic Mean

 * http://acmicpc-live-archive.uva.es/nuevoportal/data/problem.php?p=3288

Summary
Given of a sequence of several integers, compute their harmonic mean and print it in the form of a reduced fraction.

Explanation
This is the easiest problem of this contest. It was just required to write a program, doing the calculation described in the problem statement.

Input
5 4 1 2 3 4 4 2 2 3 1 9 100 100 100 100 100 100 100 100 100 9 100 99 98 97 96 95 94 93 92 91 90 9 1 1 1 1 1 1 1 1 1

Output
Case 1: 48/25 Case 2: 12/7 Case 3: 100/1 Case 4: 2157130870725600/22486388502029 Case 5: 8190/821