#include <stdio.h>
main()
{
    int x,t,m;
    scanf("%d",&x);
    t=0;
    m=x;
    while(x!=0)
    {
        x=x/10;
        t++;
    }
        x=m;
        t=t-1;
        while(t!=0)
    {
         
        x=x/10;
     
        t--;
    }
    printf("%d",x);
}