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