Task: Program Execution
Input (English): N, motions, z
Output (English): Nmotionsz