package main import ( "fmt" "strings" ) func main() { var s0, s1 string fmt.Scan(&s0, &s1) ss0 := strings.Split(s0, ".") ss1 := strings.Split(s1, ".") ans := "NO" if ss1[0] <= ss0[0] { if ss1[1] <= ss0[1] { if ss1[2] <= ss0[2] { ans = "YES" } } } fmt.Println(ans) }