System.in.eachLine{{a,b->for(x=0;x*a-b;a--)x++;println"$x $a"}it.split()*.toLong()}