R=[map(int,raw_input().split()) for i in range(10)];print max(map(sum,R+map(lambda *r:list(r),*R))) Mike 22nd October, 2009 11:37 (UTC)

Can't be bothered to deal with this wiki… here it is on dpaste.com

Version above is 100 bytes long.