#include <iostream>
#include <vector>
#include <numeric>
#include <cmath>
int main() {
int n;
std::cin >> n;
std::vector<int> raii(n);
for (int i = 0; i < n; ++i) {
std::cin >> raii[i];
}
// Calculăm suma totală și media
int suma = std::accumulate(raii.begin(), raii.end(), 0);
int medie = suma / n; // Rația țintă
int drumuri = 0;
bool toateEgale = true;
for (int raie : raii) {
if (raie != medie) {
toateEgale = false;
drumuri += std::abs(raie - medie); // adăugăm diferența
}
}
// Fiecare unitate de diferență necesită 1 drum dus și 1 întors
drumuri /= 2;
// Afișăm numărul de drumuri
std::cout << drumuri << std::endl;
// Verificăm dacă toate raiile erau egale
if (toateEgale) {
std::cout << "Wunorse, you lucky elf!" << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8bnVtZXJpYz4KI2luY2x1ZGUgPGNtYXRoPgoKaW50IG1haW4oKSB7CiAgICBpbnQgbjsKICAgIHN0ZDo6Y2luID4+IG47CgogICAgc3RkOjp2ZWN0b3I8aW50PiByYWlpKG4pOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyArK2kpIHsKICAgICAgICBzdGQ6OmNpbiA+PiByYWlpW2ldOwogICAgfQoKICAgIC8vIENhbGN1bMSDbSBzdW1hIHRvdGFsxIMgyJlpIG1lZGlhCiAgICBpbnQgc3VtYSA9IHN0ZDo6YWNjdW11bGF0ZShyYWlpLmJlZ2luKCksIHJhaWkuZW5kKCksIDApOwogICAgaW50IG1lZGllID0gc3VtYSAvIG47IC8vIFJhyJtpYSDIm2ludMSDCgogICAgaW50IGRydW11cmkgPSAwOwogICAgYm9vbCB0b2F0ZUVnYWxlID0gdHJ1ZTsKCiAgICBmb3IgKGludCByYWllIDogcmFpaSkgewogICAgICAgIGlmIChyYWllICE9IG1lZGllKSB7CiAgICAgICAgICAgIHRvYXRlRWdhbGUgPSBmYWxzZTsKICAgICAgICAgICAgZHJ1bXVyaSArPSBzdGQ6OmFic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