n=int(input())

m=n//2
l=n-m
answer=l/n

if n==1:
  print(1)
else:
  print(answer) n=int(input()) n int(input()) int input() input m=n//2 m n//2 n 2 l=n-m l n-m n m answer=l/n answer l/n l n if n==1:
  print(1)
else:
  print(answer) n==1 n 1 print(1) print 1 print(answer) print answer n=int(input()) int(input()) n m=n//2 n//2 m l=n-m n-m l answer=l/n l/n answer
n=int(input())

m=n//2
l=n-m
answer=l/n

if n==1:
  print(1)
else:
  print(answer)