Result

WA

Duration

511ms

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][0],x[1][0])

stdin

75 76 98
02 55 06
26 36 42
21 59 86

stdout

75 2

stderr

strace