#include <stdio.h> int main() { int a, b; a=b=0; scanf("%d",&a); while(b<10) { b=a%10; break; } printf("%d",b); return 0; }