Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
597 B
2
Indexable
Never
#include <stdio.h>
int main()
{
    long long int m, count = 0;
    scanf("%lld", &m);
    long long int n[m];
    for (int i = 0; i < m; i++)
    {
        scanf("%lld", &n[i]);
    }

    int min = n[0];

    for (int i = 1; i < 5; i++)
    {
        if (min > n[i])
        {
            min = n[i];
        }
    }
    for (int i = 0; i < 5; i++)
    {
        if (n[i] == min)
        {
            count++;
        }
    }

    if (count % 2 == 0)
    {
        printf("Unlucky\n");
    }
    else
    {
        printf("Lucky\n");
    }

    return 0;
}