# list1=["M","na","i","Ke"]
# list2=["y","me","s","lly"]
# i=0
# j=0
# a=[]
# while i<len(list1):
#     if i==j:
#         b=list1[i]+list2[j]
#         a.append(b)
#     j+=1
#     i+=1
# print(a)       
    
                                      
# list1=[10,20,[300,400,[5000,6000],500],30,40]
# list1[2][2].append(7000)
# print(list1)

a=[[1,2,3],[4,5,6],[10,11,12],[7,8,9]]
max=a[0]
i=0
while i<len(a):
    num=a[i]
    if num>max:
        max=num
    i+=1
print(max)

    
# name=['Snowball','Chewy','Bubbles','Gruff']
# animal=['Cat','Dog','Fish','Goat']
# age=[1,2,2,6]
# i=0
# j=0
# k=0
# while i<len(name):
#     if i==j==k:
#         print(name[i],"the",animal[j],"is",age[k])
#     j+=1
#     k+=1
#     i+=1      
























