package main import "fmt" func main() { var m,d int fmt.Scan(&m,&d) age := 24 if m<8 ||(m==8&&d<22) { age=23 } fmt.Println(age) }