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: Runtime Error)

#include <stdio.h>

int main(void){
  
    long long int input;
    int cnt, name[100] = {0};
    int memo;
  
    scanf("%lld", &input);
    //memo = input;
  
    //--;
    /*for(int j = 1; j <= memo; j++){  
        input = j;
        cnt = 0;*/
        
    for(int i = 0; ; i++){
        if(input == 0){
            break;
        } else {
	        name[i] = input % 26;
	        input = input / 26;
	        printf("%d %lld\n", name[i], input);
	        cnt++;
        }
    }
    
    for(int i = 0; i < cnt; i++){
        if(name[i] < 1){
            name[i] += 26;
            name[i + 1]--;
            if(name[cnt - 1] == 0){
                cnt--;
            }
        }
    }
    
    //name[0];
    cnt--;
    
    //printf("%d: ", j);                                 
    for(int i = 0; i <= cnt; i++){
        //printf("%lld", name[cnt - i]);
        printf("%c", name[cnt - i] + 'a' - 1);
    }
    printf("\n");
    
    //}
  
    return 0;
}