Skip to content

Commit

Permalink
solved avion
Browse files Browse the repository at this point in the history
  • Loading branch information
shakeelsamsu authored Sep 30, 2019
1 parent 95d19e0 commit e5a61e9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/avion.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import java.io.*;
import java.util.*;

public class avion {
public static void main(String args[]) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));

String res = "";
for(int i = 1; i <= 5; i++) {
if((in.readLine()).contains("FBI"))
res += i + " ";
}
if(res.length() > 0)
out.println(res);
else
out.println("HE GOT AWAY!");
out.close();
}
}

0 comments on commit e5a61e9

Please sign in to comment.