Given a

matrix

find

where

.
As the result may be large,
you are going to find only the remainder after division by 7.
*Special Note*:
The problem is intended to be easy.
Feel free to think why the problem is called `2016` if you either:
1. find it hard to solve;
2. or, solved all the other problems easily.
输入描述:
The input contains at most 40 sets. For each set:
The first line contains an integer n (
).
The second line contains 2 integers
.
The third line contains 2 integers
.
(
,
is not a multiple of 7)
输出描述:
For each set, a
matrix denotes the remainder of
after division by 7.