#include int main() { int N; std::cin >> N; std::cout << (double) 1 / N << std::endl; }