func main() var N: int :: cui@input().toInt(&) var _: [][]char :: cui@input().split(" ") var C: []int :: #[N]int var sum: int for i(0, N - 1) do C[i] :: _[i].toInt(&) do sum :+ C[i] end for var ans: int for i(0, N - 1) if(C[i] * 10 <= sum) do ans :+ 30 end if end for do cui@print("\{ans}\n") end func