#include<bits/stdc++.h>
using namespace std;
int wt[10]={0,0,0,1,3,7,15,31,63,127};
string pw;
string rpw;
int ind=1;
int main(){
cin>>rpw;
while(cin>>pw){
if(rpw==pw){
break;
}
if(ind==10){
cout<<"Locked"<<endl;
return 0;
}
ind++;
}
cout<<wt[ind-1]<<endl;
return 0;
}
评论区