#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
vector<pair<string, string>> instru = {{"reset",""},{"reset","board"},{"board","add"},{"board","delete"},{"reboot","backplane"},{"backplane","abort"}};
vector<string> outInstru = {"reset what","board fault","where to add","no board at all","impossible","install first"};
while(getline(cin, s))
{
stringstream ss(s);
string key1,key2;
getline(ss, key1, ' ');
getline(ss, key2, ' ');//按空格分割
int count=0;
string result;
for(auto it=instru.begin();it!=instru.end();it++)//遍历
{
int i1=it->first.find(key1);
int i2;
if(key2!="")
i2=it->second.find(key2);
else if(key2==""&&it->second.empty())
i2=0;
else
i2=-1;
if(i1==0 && i2==0)
{
count++;
result = outInstru[it-instru.begin()];
}
}
if(count==1)
cout<<result<<endl;
else
cout<<"unknown command"<<endl;
}
}