Codeforces R213d2 : C - Matrix