package main import "fmt" func readVersion() []int { var x, y, z int fmt.Scanf("%d.%d.%d", &x, &y, &z) return []int{x, y, z} } func main() { v0, v1 := readVersion(), readVersion() for i := 0; i < 3; i++ { if v0[i] < v1[i] { fmt.Println("NO") return } } fmt.Println("YES") }