Watson`s magic number
Execution time limit is 0.5 seconds
Runtime memory usage limit is 16 megabytes
Rybka wants to know Watson’s magic number. Watson’s magic number is a determinant of Watson’s magic matrix. Watson’s magic matrix is some known matrix with dimensions 3×3.
Input
Input contains three lines, each line contains three integers less than 100, which defines Watson’s magic matrix.
Output
You need to print Watson’s magic number.
Examples
Input #1
Answer #1
Submissions 551
Acceptance rate 70%