Problems
10085 - Search Lucky Number
SUBMIT PROBLEM

Search Lucky Number

Time Limit: 1 sec

 

The Problem

Given 5 integer numbers A, B, C, D, and E. You need to find the lucky number 7 is found within the given 5 numbers.

 

If lucky 7 found print “Wow! Lucky 7 found” otherwise print “Oops, not found”.

 

The Input

The first line contains an integer number T, which indicates the number of test cases (0 < T 1000). Each test case is given in one line. This line contains five positive integer numbers A, B, C, D, and E (0 A, B, C, D, E 20).

 

The Output

For each test case, print a single line “Case X: Wow! Lucky 7 found” if the lucky number 7 found within the given five numbers otherwise print “Case X: Oops, not found”, here X is the case number start from 1 to T.

 

Sample Input

2

1 5 7 8 13

1 3 5 9 11

 

Sample Output

Case 1: Wow! Lucky 7 found

Case 2: Oops, not found

 

 

 

[School Level]

ISCPC 2017 Preliminary Mock

Problem Setter: Shahin ShamS