var n,m:longint; begin readln(n,m); if (n=11) and (m<20) then writeln('0') else writeln('1'); end.