public class calculator{
public static void main(String[] args) throws IOException {
Double d,dd;
BufferedReader buffer=new BufferedReader(new InputStreamReader(System.in));
String str=buffer.readLine();
d=Double.parseDouble(str);
dd=1/d;
System.out.println(dd);
}
}