program Premiu;
var f:text;
Q, suma, n, i, val:integer;
begin
write('Q='); read(Q);
assign(f,'CARD.IN'); reset(f);
suma:=0;
readln(f,n);
for i:=1 to n do
begin
readln(f, val);
suma:=suma+val;
end;
if suma<Q then writeln('MULTUMIM')
else if suma<=2*Q then writeln('MOUSE')
else if suma<=3*Q then writeln('TASTATURA')
else writeln('WEBCAM');
close(f);
end.