#include #define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++) #define REP(i,n) FOR(i,0,n) #define MOD 1000000007 //#define int long long using namespace std; typedef long long ll; const int INF = 1e9; signed main() { int N; string D = ""; cin >> N; for (int i=1; i<=99; i++) { D += to_string(i); } D += "1"; string ans = ""; int carry = 0; for (int i=D.length()-1; i>=0; i--) { int keta = D[i] - '0'; keta *= N; carry += keta; ans = to_string(carry % 10) + ans; carry /= 10; } ans = to_string(carry) + "." + ans; cout << ans << endl; }