#include <iostream>
using namespace std;int n,m,i,j;double a[100][100],maxim,s;
double suma_col(){ double suma=0; for(i=0;i<n;++i) suma+=a[i][j]; return suma;}
int main(){ cin>>n>>m; for(i=0;i<n;++i) for(j=0;j<m;++j) cin>>a[i][j]; for(j=0;j<=m;j++) { s=suma_col(); if(s>maxim) maxim=s; } cout<<maxim; return 0;}