PROGRAMMING:Formation transformation



###Input format:
The input file formation.in has only one line, and there are five integers separated by spaces, which are n, x, y, R and M. they respectively represent the number of people participating in the performance, the formation code, the arrangement code, the number of positions in each line (or column) and the number of a certain performance member( N≤10000)。
###Output format:
The output file, formation. Out, contains two integers, separated by a space, which respectively represent the rows and columns of a certain performer M.
###Input example:
```in
16 1 2 3 12
```
###Output example:
```out
3 4
```
answer:If there is no answer, please comment


###Input format:
The input file formation.in has only one line, and there are five integers separated by spaces, which are n, x, y, R and M. they respectively represent the number of people participating in the performance, the formation code, the arrangement code, the number of positions in each line (or column) and the number of a certain performance member( N≤10000)。
###Output format:
The output file, formation. Out, contains two integers, separated by a space, which respectively represent the rows and columns of a certain performer M.
###Input example:
```in
16 1 2 3 12
```
###Output example:
```out
3 4
```
answer:If there is no answer, please comment