#include <stdio.h>int main (){ int a,b,c; scanf("%d",&a); for(c = 1;a>=c;c++){ if(c % 10 == 1){ b++; } } printf("%d",b);}