#include <stdio.h> #include <string.h> int main() { char a[10001]; scanf("%s",a); int len=strcspn(a,"\0"); printf("%c",a[len-1]); return 0; }