Result

WA

Duration

524ms

Code [DL]

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

stdin

02 93 62
04 81 06
75 64 58
89 08 26

stdout

2
4
75
89

stderr

strace