var a,b:string;
begin
assign(input,'p1601.in');
assign(output,'p1601.out');
reset(input);
rewrite(output);
readln(a);
readln(b);
if (a='shitou')and(b='jianzi')or(a='jianzi')and(b='bu')or(a='bu')and(b='shitou') then
write('first win!')
else
if (a='shitou')and(b='bu')or(a='jianzi')and(b='shitou')or(a='bu')and(b='jianzi') then
write('second win!')
else
write('deuce!');
close(input);
close(output);
end.
( ) |