<s>[INST] Problem Statement: Write a program that takes in a board dimensions and a sequence of movements and outputs either the "Position out of board" error or the new board position after a sequence of movements. The board dimensions should be entered as (x,y) where x is the rows and y is the columns. The sequence of movements should be entered two at a time as "Right", "Down", etc. (without quotes) corresponding to moving one place to the right, going down one row, moving one place to the left, and moving up one row, respectively.[/INST]