#include #include #define incID(i, l, r) for(int i = (l) ; i < (r); i++) #define incII(i, l, r) for(int i = (l) ; i <= (r); i++) #define decID(i, l, r) for(int i = (r) - 1; i >= (l); i--) #define decII(i, l, r) for(int i = (r) ; i >= (l); i--) #define inc( i, n) incID(i, 0, n) #define inc1(i, n) incII(i, 1, n) #define dec( i, n) decID(i, 0, n) #define dec1(i, n) decII(i, 1, n) typedef long long signed int LL; typedef long long unsigned int LU; template void swap(T &x, T &y) { T t = x; x = y; y = t; return; } template T abs(T x) { return (0 <= x ? x : -x); } template T max(T a, T b) { return (b <= a ? a : b); } template T min(T a, T b) { return (a <= b ? a : b); } template bool setmin(T &a, T b) { if(a <= b) { return false; } else { a = b; return true; } } template bool setmax(T &a, T b) { if(b <= a) { return false; } else { a = b; return true; } } template T gcd(T a, T b) { return (b == 0 ? a : gcd(b, a % b)); } template T lcm(T a, T b) { return a / gcd(a, b) * b; } // ---- ---- int n; char s[] = "001234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991"; int main() { scanf("%d", &n); int len = 0; while(s[len] != '\0') { len++; } int c = 0; dec(i, len) { int d = (s[i] - '0') * n + c; s[i] = '0' + d % 10; c = d / 10; } if(s[0] != '0') { printf("%c", s[0]); } incID(i, 1, len) { printf("%c", s[i]); if(i == 1) { printf("."); } } printf("\n"); return 0; }