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