# coding: utf-8 N = int(input()) print(1/N)