#include #include int main(){ int n; std::cin >> n; std::cout << std::fixed << std::setprecision(7) << static_cast(1.0/n) << std::endl; }