Problem Description

You get attempts and a list of values returned by a flaky API (length attempts). The first non-zero value means success. Print the value, or FAIL.

Input Format

Line1: attempts. Line2: attempts integers.

Output Format

Value or FAIL.

Sample Test Case

Input:
5 0 0 7 0 9
Output:
7

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next