#include using namespace std; int main() { long long N, M; cin >> N >> M; long long sum = 0; for (long long i = 0; i < N; i++) { long long x; cin >> x; sum += x; } cout << (sum / N) / M << endl; }