program kot; var k,n,f,ot:longint; begin f:=0; readln(k,n); if(n div k = 0)or(n mod k > 0)then f:=1; ot:=(n div k+ f) * 2 ; writeln(ot); end.
program kot; var k,n,f,ot:longint; begin f:=0; readln(k,n); if(n div k = 0)or(n mod k > 0)then f:=1; ot:=(n div k+ f) * 2 ; writeln(ot); end.