AVION1 - AVION

Mirko and Slavko are USKOK agents tracking the movements of an unnamed corrupt government official. Anonymous sources have tipped them about his upcoming escape attempt. They now know he plans to use his diplomatic liaisons to try and hitch a ride on a CIA blimp leaving from Severin na Kupi blimp port.

It’s common knowledge that all CIA blimps have the string “FBI” somewhere in their registration codes. They obtained a list of all blimps scheduled for the designated day. There are exactly 5 blimps on the list. Write a program that will point out all CIA blimps.

Input

There are exactly 5 rows of input, each row representing one blimp registration code from the list. A registration code is a sequence of at most 10 uppercase letters of the English alphabet, digits ‘0’ to ‘9’, or dashes ‘-’.

Output

The first and only line of output must contain a space separated list of integers, sorted in increasing order, indicating the corresponding input rows containing registrations of CIA blimps. If there are no CIA blimps, output the string “HE GOT AWAY!”

Sample

Input:
N-FBI1
9A-USKOK
I-NTERPOL
G-MI6
RF-KGB1

Output:
1
Input:
N321-CIA
F3-B12I
F-BI-12
OVO-JE-CIA
KRIJUMCAR1

Output:
HE GOT AWAY!

Added by:Kawmia Institutes
Date:2011-02-18
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Resource:COCI

hide comments
2019-10-21 21:23:59 Stefan
Input:

47-FBI
BOND-007
RF-FBI18
MARICA-13
13A-FBILL

Output:

1 3 5
2014-12-15 10:18:53 agaurav77
Those who are getting WA should read the question carefully. It is not asking for total CIA blimps, but the indices of them. Got 2 WA due to this.
2012-05-21 18:36:30 Soumyajit Das


Last edit: 2014-02-05 18:01:54
2012-04-23 11:43:46 Darky
But, seriously, why is it in classical?
2012-02-26 09:35:54 BlackBird
Oh dear lord!, How can this question be here with ALL languages and a 50KB limit!
Except for a few, all languages have in-built function for this code.
2012-01-11 21:11:03 PubLic_AvenGeR
Waste...Move 2 tutorial...
2012-01-05 14:43:15 saket diwakar
got it....for C users->use long int instead of int...it caused me runtime error
2011-12-21 15:18:54 张翼德
is seems easy.. but I got 3 WA.. enable to find fault.. and the comments say its very easy.. what the #uck

tip==> avoid using library.. or else u gonna land in same place as me :)

Last edit: 2011-12-21 15:39:55
2011-10-09 20:24:37 MR. BEAN
GOT RUNTIME ERROR WITH C .......
GOT AC WITH C++
:P
2011-07-26 17:20:19 ViNiTH
:|


Last edit: 2011-08-07 10:30:14
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.