#include #include #include using namespace std; int main() { int n; vector v; cin >> n; int tmp; for (int i = 0; i < n; i++) { cin >> tmp; v.push_back(tmp); } double total = accumulate(v.begin(), v.end(), 0); int r = 0; if (total != 0) { for (int i = 0; i < n; i++) { if (v[i] / total <= 0.1) { r += 30; } } } cout << r << endl; return 0; }