package main import ( "bufio" "os" "strconv" "fmt" ) type Data struct { Name string Point string X string } func scan() *Data { c := Data{} fmt.Scanf("%s %s %s", &c.Name, &c.Point, &c.X) return &c } func (a *Data)sort(b *Data) *Data { if len(a.Point) < len(b.Point) { return b } if len(a.Point) > len(b.Point) { return a } if a.Point < b.Point { return b } if a.Point > b.Point { return a } return nil } func main() { A := scan() B := scan() ans := A.sort(B) fmt.Println(ans.Name) } var s = bufio.NewScanner(os.Stdin) func next() string { s.Split(bufio.ScanWords) s.Scan() return s.Text() } func nextLine() string { s.Split(bufio.ScanLines) s.Scan() return s.Text() } func nextInt() int { i, e := strconv.Atoi(next()) if e != nil { panic(e) } return i } func nextLong() int64 { i, e := strconv.ParseInt(next(), 10, 64) if e != nil { panic(e) } return i }