import java.util.*; class Main{ public static void main(String[] $) { Scanner s=new Scanner(System.in); System.out.println(1.0/s.nextInt()); } }