package main import . "fmt" func main() { var n,t int Scan(&n) c:=make([]int,n) for i:=range c { Scan(&c[i]) t+=c[i] } for _,v:=range c { if t<=v*10 { n-- } } Println(n*300000) }