the Old City rectangular city represent mn grid block this city contain building straight twoway street junction each junction building exactly block all street width block vertical horizontal There junction side street we block adjacent share common no block different street adjacent junction adjacent there annual festival the Old Peykan follow special path city this path start block street continue junction end block street for street block know time take Old Peykan block adjacent block also Old Peykan junction adjacent street block minute of course Old Peykan can not build blocksWe know initial position Old Peykan sequence junction pass reach destination after pass junction reach destination stay forever your task find Old Peykan k minute start move consider the Old Peykan follow short path pass give sequence junction reach destinationnote Old Peykan visit block