package main import "fmt" func main() { var n int fmt.Scan(&n) ans := 0 for t := 0; t/5 <= n; t++ { for g := 0; g <= t; g++ { for p := 0; p/3 <= n; p++ { if 5*t+2*g+3*p == n { ans++ } } } } fmt.Println(ans) }