Problem:
Score : 100 points

Problem Statement

An uppercase or lowercase English letter \alpha will be given as input.
If \alpha is uppercase, print A; if it is lowercase, print a.

Constraints

\alpha is an uppercase (A - Z) or lowercase (a - z) English letter.

Input

Input is given from Standard Input in the following format:

α

Output

If \alpha is uppercase, print A; if it is lowercase, print a.

Sample Input 1

B

Sample Output 1

A

B is uppercase, so we should print A.

Sample Input 2

a

Sample Output 2

a

a is lowercase, so we should print a.

Solution in C (GCC 9.2.1) (judge verdict: Wrong Answer)

#include <stdio.h>

int main(){
    long int i;
    int j,k=0,l;
    char a[100];
    if(scanf("%ld",&i)!=1)
        scanf("%ld",&i);
    while(i!=0){
        j=i%26;
        i=i/26;
        switch (j){
        case 0:
            a[k]='z';
            break;
        case 1:
            a[k]='a';
            break;
        case 2:
            a[k]='b';
            break;
        case 3:
            a[k]='c';
            break;
        case 4:
            a[k]='d';
            break;
        case 5:
            a[k]='e';
            break;
        case 6:
            a[k]='f';
            break;
        case 7:
            a[k]='g';
            break;
        case 8:
            a[k]='h';
            break;
        case 9:
            a[k]='i';
            break;
        case 10:
            a[k]='j';
            break;
        case 11:
            a[k]='k';
            break;
        case 12:
            a[k]='l';
            break;
        case 13:
            a[k]='m';
            break;
        case 14:
            a[k]='n';
            break;
        case 15:
            a[k]='o';
            break;
        case 16:
            a[k]='p';
            break;
        case 17:
            a[k]='q';
            break;
        case 18:
            a[k]='r';
            break;
        case 19:
            a[k]='s';
            break;
        case 20:
            a[k]='t';
            break;
        case 21:
            a[k]='u';
            break;
        case 22:
            a[k]='v';
            break;
        case 23:
            a[k]='w';
            break;
        case 24:
            a[k]='x';
            break;
        default:
            a[k]='y';
            break;
        }

        k++;

    }
    for(l=k;l>=0;l--){
        printf("%c",a[l]);
    }
    printf("\n");
    return 0;
}