import java.util.*;
import java.util.regex.*;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 注意 hasNext 和 hasNextLine 的区别
// while (in.hasNextInt()) { // 注意 while 处理多个 case
// int a = in.nextInt();
// int b = in.nextInt();
// System.out.println(a + b);
// }
String[] commands = {"reset", "reset board", "board add", "board delete", "reboot backplane", "backplane abort"};
String[] results = {"reset what", "board fault", "where to add", "no board at all", "impossible", "install first", "unknown command"};
while (in.hasNextLine()) {
String command = in.nextLine();
String[] subs = command.split(" ");
int sublen = subs.length;
int count = 0;
int index = -1;
for (int i = 0; i < commands.length; i++) {
String s = commands[i];
String[] ss = s.split(" ");
boolean match = true;
if (ss.length == sublen) {
for (int j = 0; j < sublen; j++) {
if (!ss[j].startsWith(subs[j])) {
match = false;
}
}
if (match) {
count++;
index = i;
}
}
}
if (count == 1 && index != -1) {
System.out.println(results[index]);
} else {
System.out.println(results[6]);
}
}
}
}