#include
int main()
{ char ch;
scanf("%c",&ch);
if(ch>='a' && ch<='z')
printf("%c,%d %c,%d\n",ch,ch,ch-32,ch-32);
return 0;
}