#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
using ll = long long;

#define SWAP(a,b) ((a != b)? (a += b,b = a - b,a -= b) : 0 ) //数値のみ
#define SWAP(type,a,b) { type temp = a; a = b; b = temp; } //ポインタ, 構造体, 文字列
#define rng(i, a, b) for(int i = int(a); i < int(b); i++)
#define rep(i, b) rng(i, 0, b)
#define pb push_back
#define eb emplace_back
#define bg begin()
#define ed end()
#define all(x) x.bg,x.ed

ll jo(ll a, ll n){
  ll tmp = 1;
  rep(i, n) {
    tmp *= a;
    if(tmp <= 0) return -1;
  }
  return tmp;
}

void yn(bool Yes){
  cout << ((Yes)? "Yes" : "No") << endl;
}

void ny(bool No){
  cout << ((No)? "No" : "Yes") << endl;
}

void YN(bool YES){
  cout << ((YES)? "YES" : "NO") << endl;
}

void NY(bool NO){
  cout << ((NO)? "NO" : "YES") << endl;
}

void Yay(bool y){
  cout << ((y)? "Yay!" : ":(") << endl;
}

int main() {
  int n, a, b, ans = 0;
  char c;
  string s;
  cin >> s;
  rep(i, s.size()){
    if(s[i] == '.') break;
    cout << s[i];
  }
  cout << endl;
  //printf("%.10lf\n", ans);
}
#include<bits/stdc++.h>

using namespace std;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  long long n;
  cin >> n;
  long long res=0;
  long long st,fi;
  long long c=0;
  for(st=1;;st*=10){
    fi=10*st-1;
    fi=min(n,fi);
    res+=(c/3)*(fi-st+1);
    c++;
    if(fi==n){break;}
  }
  cout << res << '\n';
  return 0;
}
