Power of matrix

Problem Name:
Power of matrix
Site:Spoj
Links:
Tags:
Problem setters: