Result

WA

Duration

597ms

Code [DL]

freq = {}
x=[]
i=0
while gets()
    for word in $_.split('/\s/')
a=word.split(" ")
    end
x[i]=a 
i=i+1
end
   printf("%d %d\n",x[0][2],x[3][2])

stdin

53 40 99
62 51 96
19 32 03
15 63 30

stdout

99 30

stderr

strace