Inna love sweet that s wants play Sweet Matrix game Dima Sereja but Sereja large person game prove small Sereja suggest play large Sweet Matrix gameThe large Sweet Matrix playing field nm matrix Lets number row matrix 1 n column 1 m Lets denote cell ith row jth column ij each cell matrix contain multiple candy initially cell the game go w move follow event occur Sereja choose integer x1y1x2y2v x1x2y1y2 add v candy matrix cell ij x1ix2y1jy2 Sereja choose integer x1y1x2y2 x1x2y1y2 then ask Dima calculate total number candy cell ij x1ix2y1jy2 ask Inna calculate total number candy cell matrix pq meet follow logical criterion px1 or px2 and qy1 or qy2 finally Sereja ask write difference number Dima calculate number Inna calculate D I unfortunately Serejas matrix huge that s Inna Dima are not cope calculate help