← Home
For problem statement at 0-999/300-399/320-329/320/problemA.txt this is a correct solution, but verifier at 0-999/300-399/320-329/320/verifierA.go ends with ok 200 can you fix the verifier? ```go
package main

import (
	"fmt"
	"strings"
)

func main() {
	var s string
	fmt.Scan(&s)
	for len(s) > 0 {
		if strings.HasPrefix(s, "144") {
			s = s[3:]
		} else if strings.HasPrefix(s, "14") {
			s = s[2:]
		} else if strings.HasPrefix(s, "1") {
			s = s[1:]
		} else {
			fmt.Println("NO")
			return
		}
	}
	fmt.Println("YES")
}
```