A,B=0,0 N=int(input()) L=[0]*201 for i in range(N): A,B=map(int,input().split()) L[A-B]+=1 print(max(L))