#include<stdio.h>
int main()
{
    char ch;
    scanf("%c",&ch);
    ch=ch+('a'-'A')*(cg>='A'&&ch<='Z');
    printf("%d",ch);
    return 0;
}