// No.191 供託金 package main import "fmt" func main() { var n int //出馬人数 fmt.Scan(&n) c := make([]int, n) for i := 0; i < n; i++ { fmt.Scan(&c[i]) } sum := 0 for _, c1 := range c { sum += c1 } ans := 0 for _, c2 := range c { if c2 <= (sum / 10) { ans++ } } fmt.Println(int(ans * 30)) }