timus; solve "Rope" from Volume 1