Problems
10099 - S.S.C.
SUBMIT PROBLEM

S.S.C.

Time Limit: 1 sec

 

The Problem

You are an S.S.C examinee of 2017. You have 12 subjects as compulsory and 1 subject as optional. Some of your classmates are very much tensed about their result. So, they want to have an idea about what GPA (Grade Point Average) they may get. As you can calculate better than all of your friends,  your friends came to you and they told you the point of individual subject they may get in the final exam (these points are totally guessed by your friends). According to their estimation, you have to tell them the GPA they may get. But you have so many friends that you got tired making calculation. So, you decided to make a program which take point of individual subjects as input and give GPA as output.

 

Point of individual subject is in between 0 and 5 (inclusive). Lowest point 0 (zero) in any subject indicates that one has failed in that specific subject. If anyone fails in any compulsory subject, s/he is considered to be failed in S.S.C. examination.  One student can secure some point by optional subject if s/he gets more than 2 points in optional subject. That means, secured point= (obtained point in optional subject -2). This secured point can be added to your obtained point if you're obtained point is lower than total point. Suppose you're obtained point is 58, where total point is 60 = (12 x 5). If your secured point is 2 or 3, 2 points will be added to your obtained point. Now GPA of one student is measured by dividing his/her total obtained points by 12 (since there are 12 compulsory subjects).

 

The Input
First line of input contains total number of students whose GPA have to calculate. For each student, there will be 13 line of input, 12 lines indicate points of compulsory subjects and 13th line indicates point of optional subject. You may assume that you have to calculate at most 100 students’ GPA.

 

The Output

For every student there will be single line of output. Each line starting with “Student N: ”, where N indicates N-th student. If anyone fails in 1 or 2 compulsory subject, then print “Sorry. You failed.”, if anyone fails more than 2 compulsory subject print “Oops, get ready for all subjects again. :(” Otherwise output his/her GPA.

 

Sample Input

3

3.00

4.00

5.00

1.00

0.00

1.00

2.00

4.00

3.00

3.50

4.00

0.00

3.00

5.00

5.00

5.00

5.00

5.00

5.00

5.00

5.00

5.00

5.00

5.00

5.00

5.00

0.00

4.00

0.00

1.00

0.00

1.00

2.00

4.00

3.00

3.50

4.00

0.00

4.00

 

Sample Output

Student 1: Sorry. You failed.

Student 2: 5.00

Student 3: Oops, get ready for all subjects again. :(

 

 

 

[College Level]

ISCPC 2017 Preliminary

Problem Setter: Puja Chakraborty