A
https://vj.ti12z.cn/b6a01d0138a4322d56d4aa6c3311794a?v=1564805519
//Full of love and hope for life
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <queue>
#define inf 0x3f3f3f3f
//https://paste.ubuntu.com/
using namespace std;
int a;
char s[100],ss[100];
int win;
int lose;
int len=strlen(s);
int chance;
void guess(char ch){
int bad=1;
for(int i=0;i<strlen(s);i++){
if(s[i]==ch){
len--;
s[i]=' ';
bad=0;
}
}
if(bad) --chance;
if(!chance) lose=1;
if(!len) win=1;
}
int main()
{
while(cin >> a){
if(a==-1){
break;
}
cin >> s;
cin >> ss;
cout << "Round " << a << endl;
win=0;
lose=0;
len=strlen(s);
chance=7;
for(int i=0;i<strlen(ss);i++){
guess(ss[i]);
if(win||lose){
break;
}
}
if(win){
cout << "You win." << endl;
}
else if(lose){
cout << "You lose." << endl;
}
else{
cout << "You chickened out." << endl;
}
}
return 0;
}