l=['10.5.15','10.5.20','10.6.0','10.6.10','10.6.5']
result = []
dict={}
# for m,item in enumerate(l):
#     print m,item,item.replace('.','')
#     result.append(int(item.replace('.','')))
#     print "M",max(result)

    #print l[m]


ll=['10.5.15','10.5.20','10.6.0','10.6.10','10.6.5']

# ret=[ for m,item in enumerate(ll)]
#
# l1=[]
# l2=[]
# l3=[]
# for version in l:
#     (s1,s2,s3)= version.split(".")
#     # print s1,s2,s3
#     l1.append(int(s1))
#     l2.append(int(s2))
#     l3.append(int(s3))
# version=max(l1)+'.'+max(l2)+'.'+max(l3)
# print "MAX",version


    # index = (v1*10000) + (v2*100) + v3
    # print (index , )



# def get_max_version(version):
#     try:
#         v1,v2,v3 = map(int, version.split('.'))
#         res = (int(v1)*10000) + (int(v2)*100) + int(v3)
#         print "R",res
#         return (res)
#     except ValueError:
#         print "value error"

def ver_tuple(z):
    return tuple([int(x) for x in z.split('.') if x.isdigit()])


def get_max_version(version):
    v1,v2,v3 = map(int, version.split('.') )
    res = (int(v1)*10000) + (int(v2)*100) + int(v3)
    print "R",res
    return (res)







# l=['10.5.15','10.5.20','10.6.30','10.6.0','10.6.10','10.6.5','10.6.15','10.6.20','10.6.25']
# l=['10.5.15','10.5.20','10.6.0','10.6.10','10.6.5','main']



print "MAX=====",(max (l, key=get_max_version))


