{
TASK:minjumps
LANG:PASCAL
}
program minjumps;
  begin
    writeln('-1');
    end.
