FBI

Interview

Time limit0.25sMemory limit128 MB

Summary
Given five agent codes, print the 1-based positions of those containing the substring FBI, or a fixed message if none do.
Level

Easy1 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

You are given five agent codes. Write a program that finds the positions of the agents whose code contains the string FBI.

The positions are numbered from 1 to 5 in input order.

Input

Five lines are given. Each line contains one agent code.

Each code consists only of uppercase English letters, digits from 0 to 9, and hyphens (-), and its length is at most 10.

Output

Print the positions of all agents whose code contains the string FBI on one line.

If there is more than one such position, print them in increasing order separated by spaces. If no such agent exists, print HE GOT AWAY!.

Examples3

  1. Example 1

    Input
    N-FBI1
    9A-USKOK
    I-NTERPOL
    G-MI6
    RF-KGB1
    
    Expected output
    1
    
  2. Example 2

    Input
    N321-CIA
    F3-B12I
    F-BI-12
    OVO-JE-CIA
    KRIJUMCAR1
    
    Expected output
    HE GOT AWAY!
    
  3. Example 3

    Input
    47-FBI
    BOND-007
    RF-FBI18
    MARICA-13
    13A-FBILL
    
    Expected output
    1 3 5