#include <stdio.h> int main( void ) { unsigned n; scanf( "%d", &n ); double s = 0; for( unsigned i=1; i<=n; ++i ) s += (i%2*2-1.)/i; printf( "%.2f\n", s ); }