SP16180 RATAR - Ratar

Description

Unexpected problems with law enforcement have convinced Mirko to take up a less lucrative but less

Input Format

The first line of input contains the positive integer N (1 land plot. Each of the following N lines contains N space-separated numbers Aij (-1000 < Aij < 1000), the income provided by the respective cell.

Output Format

The first and only line of output must contain the total number of plot pairs satisfying the given condition.