#include int main() { int n; std::cin >> n; int mod = n / 7; double ret = mod / n; std::cout << ret << std::endl; return 0; }