Turtle Maze Puzzle - Number portals

Write a program to help the Turtle get to the blue square.
Don't get confused by the number portals!