33.39%

Given a non null integer matrix,calculate the sum of its elements.

**Input:** First line contains T , the number of test cases.First line of each test contains 2 integers N,M and N lines follow which contain M spaced integers.

**Output:**Single line for each test case containing the sum

**Constraints: **1<= N,M<=10 , elements of matrix -1000<=matrix<=1000

**Example:
Input:
1**

2 3

1 0 0

8 -9 -1

**Output **

-1

akhayrutdinov | 30 |

Prateek Gole | 30 |

krushna.sharma | 29 |

StarkMaverick | 28 |

ujjwalgarg | 26 |

Lam Ngoc Pham | 405 |

All Is Well | 399 |

Divvya Sinha | 367 |

Prateek Gole | 347 |

skull tone | 310 |

akhayrutdinov | 3847 |

sanjay05 | 3366 |

Michael Riegger | 2015 |

Jasleen Kaur 2 | 2012 |

Quandray | 1949 |