    #include <stdio.h>
    #define POSSIBLE_POINTS_LENGTH 4
    
    int possiblePoints[POSSIBLE_POINTS_LENGTH] = { 3, 6, 7, 8 };
    
    int checkIfValid(int score)
    {
        int i, j;
        if (score < 0) return 0;
        for (i = 0; i < POSSIBLE_POINTS_LENGTH; ++i)
        {
            if (score % possiblePoints[i] == 0)
            {
                return 1;
            }
            else
            {
                for (j = 0; j < POSSIBLE_POINTS_LENGTH; ++j)
                {
                    if (checkIfValid(score - possiblePoints[j]))
                    {
                        return 1;
                    }
                }
            }
        }
        return 0;
    }
    
    int main(void) {
        int score, isValid;
        scanf("%d", &score);
        isValid = checkIfValid(score);
        if (isValid)
        {
            printf("Valid Score");
        }
        else
        {
            printf("Invalid Score");
        }
        return 0;
    }
