#include <stdio.h>
int main() {
    char ch;
    scanf("% c", &ch);
    //convert uppercase to lower caseusing bitwise OR with 32(only affects A-Z)
    //ASCII difference between uppercase and lowercase letters is 32
    char converted = ch | 32;
    //print the ASCII value of the converted character
    printf("%d\n",(ch >= 'A' && ch <= 'Z'))? converted : ch;
    return 0;
}