#D12758. Angel Relief
Angel Relief
Angel Relief
K: Relief (Angel Relief)
Tenma, an angel, decides to save a city.
The city has a rectangular shape divided into north-south parcels x east-west parcels, with houses in each parcel.
The th section from the north and the th section from the west are represented by .
The house in parcel is inhabited by people.
Tenshin chooses a rectangular area whose sides are parallel or vertical to north-south or east-west, and rescues all the people living in it one by one.
Tenshin does this for every possible rectangle.
Find the total number of times Tenma-san rescues people.
input
The integers are given on the first line, separated by blanks.
Of the following lines, the integers $ A_ {i, 1}, A_ {i, 2}, A_ {i, 3}, \ dots, A_ {i, W} $ are blank on the line. Given as a delimiter.
output
Output the total number of times Tenma-san rescues people.
Constraint
- are integers between and
- are all integers greater than or equal to and less than or equal to .
Input example 1
twenty two 1 2 4 8
Output example 1
60
For example, if you choose a rectangular area with in the upper left and in the lower right, you will rescue people there one by one, so a total of times. Relief.
relief for each of the rectangular areas, for a total of .
Input example 2
twenty three one two Three 4 5 6
Output example 2
140
Example
Input
2 2 1 2 4 8
Output
60
inputFormat
input
The integers are given on the first line, separated by blanks.
Of the following lines, the integers $ A_ {i, 1}, A_ {i, 2}, A_ {i, 3}, \ dots, A_ {i, W} $ are blank on the line. Given as a delimiter.
outputFormat
output
Output the total number of times Tenma-san rescues people.
Constraint
- are integers between and
- are all integers greater than or equal to and less than or equal to .
Input example 1
twenty two 1 2 4 8
Output example 1
60
For example, if you choose a rectangular area with in the upper left and in the lower right, you will rescue people there one by one, so a total of times. Relief.
relief for each of the rectangular areas, for a total of .
Input example 2
twenty three one two Three 4 5 6
Output example 2
140
Example
Input
2 2 1 2 4 8
Output
60
样例
2 2
1 2
4 8
60