Integer division and remainder




Task
Time limit: 1000 ms,
Memory limit: 32 Mb

A four-digit number is given. Write a program that displays the number formed by rearranging the first and second, third and fourth digits of a given number

Input: given an integer 
Output: output a new number

Example
N Input Output
1 4561 5416

Prohibited statements:sep;format

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: