package main import "fmt" func main() { var a, b int fmt.Scan(&a, &b) ans := 3 for d := 23; d <= 25; d++ { if a <= d && d <= b { ans-- } } fmt.Println(ans) }