#include using namespace std; #define all(c) (c).begin(),(c).end() #define rrep(i,n) for(int i=(int)(n)-1;i>=0;i--) #define REP(i,m,n) for(int i=(int)(m);i<(int)(n);i++) #define rep(i,n) REP(i,0,n) #define iter(c) __typeof((c).begin()) #define tr(it,c) for(iter(c) it=(c).begin();it!=(c).end();it++) #define mem(a) memset(a,0,sizeof(a)) #define pd(a) printf("%.10f\n",a) #define pb(a) push_back(a) #define in(a) insert(a) #define pi M_PI #define R cin>> #define F first #define S second #define C class #define ll long long #define ln cout<<'\n' templatevoid pr(T a){cout<void pr(T a,T2 b){cout<void pr(T a,T2 b,T3 c){cout<void PR(T a,int n){rep(i,n){if(i)cout<<' ';cout<=0&&x=0&&y P; string S(ll n){stringstream ss;string s;ss<>s;return s;} string Z(string s){int i;for(i=0;it.size())t='0'+t;int c=0; rrep(i,s.size()) { if(c){if(s[i]=='9'){s[i]='0';c=1;}else{s[i]=(char)(s[i]+1);c=0;}} int sum=(int)s[i]+(int)t[i]-'0'*2; if(sum>=10){s[i]=(char)(sum-10+'0');c=1;} else s[i]=(char)(sum+'0'); } return Z(s); } string MUL(string s,string t) { string z1="",ans=""; rrep(i,t.size()) { string z2="",r=""; rrep(j,s.size()){r=ADD(r,S((s[j]-'0')*(t[i]-'0'))+z2);z2+="0";} ans=ADD(ans,r+z1);z1+="0"; } return Z(ans); } void Main() { string s="1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991"; int n; R n; s=MUL(s,S(n)); string t=S(0.123456789*n); if(t=="0") s="0."+s; else s=s.substr(0,t.size())+'.'+s.substr(t.size()); pr(s); } int main() { ios::sync_with_stdio(0);cin.tie(0); Main();return 0; }