Problem:
 Score : 100 points    Problem Statement Given is an integer N .  Takahashi chooses an integer a from the positive integers not greater than N with equal probability.  Find the probability that a is odd.      Constraints  1 \leq N \leq 100         Input Input is given from Standard Input in the following format:  N       Output Print the probability that a is odd.
Your output will be considered correct when its absolute or relative error from the judge's output is at most 10^{-6} .        Sample Input 1 4      Sample Output 1 0.5000000000  There are four positive integers not greater than 4 : 1 , 2 , 3 , and 4 . Among them, we have two odd numbers: 1 and 3 . Thus, the answer is \frac{2}{4} = 0.5 .       Sample Input 2 5      Sample Output 2 0.6000000000       Sample Input 3 1      Sample Output 3 1.0000000000

Solution (Python):
s=input()
a=int(s)
if a==1:
  print(a/1)
elif a!=1 and a%2==1:
  b=(a-1)/2+1
  print(b/a)
else:
  print(1/2)

Solution (Python):
n = int(input())
if n % 2 == 0:
    print(float(n / 2) / n)
else:
    print(float((n-1) / 2 + 1) / n)

Solution (Python):
v=int(input())
if (v % 2 == 0):
    print 0.5
else:
    print (v/2+1.0)/v

Solution (Python):
N=int(input())
a=int(N/2)
if N%2==1:
	b=a+1
else:
	b=a
print(b/N)

Solution (Python):
import numpy as np

a = int(input())
if a == 1:
    print(1)
elif a%2 == 0:
    print(0.5)
else:
    print((a//2+1)/a)

Solution (Python):
def A_OddsofOddness():
    N = int(input())
    ans = 0.5
    if N % 2 == 1:
        ans = (N // 2 + 1.0) / N
    print(ans)
if __name__ == "__main__":
    A_OddsofOddness()

Solution (Python):
n = int(input())

k = n%2
if n == 1:
    print('{:.10f}'.format(1.0000000000))
elif k == 1:
    print('{:.10f}'.format((n//2 + 1)/n))
else:
    print('{:.10f}'.format(0.5000000000))

Solution (Python):
n = int(input())

p = 1 - (n // 2) / n
print(p)

Solution (Python):
import math
n = int(input())

if n % 2 == 2:
  print(0.5)
else:
  print('{:.1000f}'.format(math.ceil(n / 2) / n))

Solution (Python):
n = int(input())

print((n+1)//2/n)

Solution (Python):
n = int(input())

if n%2 == 0:
  print(0.5)
else:
  print((n//2+1)/n)

Solution (Python):
n = int(input())
print(((n + 1) // 2) / n)

Solution (Python):
import math
N = int(input())

if N % 2 == 0:
    print(0.5)

elif N == 1:
    print(1)
else:
    print(math.ceil(N / 2) / N)

Solution (Python):
n=int(input())
print('{:.7g}'.format((n-n//2)/n))

Solution (Python):
N = int(input())
print(((N+1)//2)/N)

Solution (Python):
n = int(input())
if n % 2 == 0:
  p = 0.5000000
else:
  p = ((n-1)/2+1)/n
print("{:.10f}".format(p))

Solution (Python):
n = int(input())
 
if n == 1:
  ans = 1.0000000000
elif n % 2 == 1:
  ans = ((n+1)/2)/n
elif n % 2 == 0:
  ans = 0.5000000000
print('{:.7f}'.format(ans))

Solution (Python):
n=int(input())
if n%2:
    print((n//2+1)/n)
else:
    print(0.5)

Solution (Python):
a=int(input())
b=a+1
c=0
d=0
for i in range(b):
	c=i%2
	if c == 1:
		d=d+1
	else:
		pass
e=d/a
print(e)

Solution (Python):
import sys
input = sys.stdin.readline
n = int(input())
if n % 2 == 0:
    print(1/2)
elif n == 1:
    print(1)
else:
    s = n//2 + 1
    print(s/n)

Solution (Python):
N = int(input())
a = 0
for k in range(1,N+1):
    if k % 2==1:
        a += 1
answer = a/N
print(answer)

Solution (Python):
A = int(input())
list = []
ls = []
m = 0
for i in range(A):
  i += 1
  n = i%2
  if n == 1:
    list.append(i)
  else:
    ls.append(i)
m = len(ls)+len(list)
print(len(list)/m)

Solution (Python):
import sys
import os
input = input()
x = int(input)
if x % 2 == 0 :
    y = x / 2
else:
    y = (x - 1)/2 + 1

z = y / x
print(z)

Solution (Python):
import math
N = int(input())
odd = math.floor(N/2) + N%2
print(odd/N)

Solution (Python):
n=int(input())
if n%2==0:
    print(0.5)
else:
    m=n//2+1
    x=m/n
    print(x)

Solution (Python):

N = int(input())

odds = 0
for i in range(N) :
    if (i + 1) % 2 == 0 :
        continue
    else :
        odds = odds + 1
        
print(float(odds)/float(N))

Solution (Python):
n = int(input())
if n % 2 == 0:
    print(1/2)
else:
    print((n+1)/2/n)

Solution (Python):
if __name__ == '__main__':
    N = input()
    odd_count = 0
    even_count = 0

    for i in range(1, (int(N)+1)):
        remainder = i % 2
        if remainder == 0:
            even_count = even_count + 1
        else:
            odd_count = odd_count + 1

    print(odd_count / int(N))

Solution (Python):
n = int(input())
if n%2 == 0 :
  print( ( n / 2 ) / n  )
elif n == 1 :
  print( n )
else:
  print( ( ( ( n - 1 )  / 2 ) +1 ) / n )

Solution (Python):

import sys
sys.setrecursionlimit(100000)
import numpy as np

directions=np.array([[1,0],[0,1],[-1,0],[0,-1]])


def acinput():
    return list(map(int,input().split(" ")))




import sys
sys.setrecursionlimit(100000)

import numpy as np

directions = [[1, 0], [0, 1], [-1, 0], [0, -1]]
directions = list(map(np.array, directions))

def acinput():
    return list(map(int, input().split(" ")))

N=int(input())

if N%2==0:
    print(0.5)
else:
    print(np.ceil(N/2)/N)

Solution (Python):
n=int(input())
if n%2==0:
  a=0.5
else:
  a=((n+1)/2)/n
print(a)

Solution (Python):
N=int(input())
p=0
if N%2==0:
    p=0.5
else:
    p=(N//2+1)/N
print(p)

Solution (Python):
n=int(input())
print((n-n//2)/n)

Solution (Python):
a =int(input())
aa=0
if a %2 == 1:
  aa+=1
aaa =a//2+aa
print(aaa/a)

Solution (Python):
n = int(input())
print(1.0-(n//2)/n)

Solution (Python):
a = int(raw_input())

if (a%2 == 0):
    print(0.5)
else:
    odd = (a // 2) + 1
    odd = float(odd)
    print (float(odd/a))

Solution (Python):
n = int(input())

if n % 2 == 0:
    val = 0.5
else:
    val = ((n+1)/2)/n

print("{0:.10f}".format(val))

Solution (Python):
n=int(input());print(0--n//2/n)

Solution (Python):
n = int(input())
if(n%2==0):
  print(1/2)
else:
  print((n+1)/2/n)

Solution (Python):
N = int(input())
Out = 0.0
if N % 2 == 0:
    Out = (N/2) / N
else:
    Out = ((N/2)+0.5) / N
print("{:.10f}".format(Out))

Solution (Python):
import numpy as np
a = 0
b = 0
N = int(input())
for i in range(N):
    if i%2 == 0:
        a += 1   
result = a/N
print(result)

Solution (Python):
N = input()

s = int(N)%2

if s == 0:
  print(0.5)
else:
  a = (int(N)+1)/(2*int(N))
  print(a)

Solution (Python):
n=int(input())

if n%2==0:
    print('0.5')
else:
    s=n//2
    print((n-s)/n)

Solution (Python):
a =int(input())
s = 0
for i in range(a):
        if (i+1)%2!=0:s+=1
print(s/a)

Solution (Python):
N = int(input())
i = 1.0
j =  0.0
while i < N+1:
    if i%2 == 1:
        j = j+1
    i = i+1
ans = j/N
print(ans)

Solution (Python):
import math

N = input()
o = math.ceil((float(N) / float(2))) / float(N)
print('{:.10f}'.format(o))

Solution (Python):
N = int(input())
ans = 0
if N == 1:
    ans = 1
elif N%2 != 1:
    ans= 0.5
else:
    ans=(N+1)/(2*N)
print(ans)

Solution (Python):
n = int(input())
odd = n // 2 + n % 2
print(odd / n)

Solution (Python):
n=int(input())

a=0
for i in range(n):
  if (i+1) % 2 != 0:
    a+=1

print(a/n)

Solution (Python):

N = input()

if int(N) % 2 == 0:
  ans = 0.5
else:
  ans = ((int(N) - 1) /2 + 1) / int(N)

print(ans)

Solution (Python):
i = int(input())
if i % 2 == 0:
    print((i // 2) / i)
else:
    print(((i // 2) + 1) / i)

Solution (Python):
a = int(input())

odd_cnt = 0
if a % 2 == 1:
    odd_cnt = int(a / 2) + 1
else:
    odd_cnt = int(a / 2)

ans = odd_cnt / a

print('{}'.format(ans))

Solution (Python):
import math
n = int(input())
if n % 2 == 0:
    print(1/2)
else:
    print(math.ceil(n/2)/n)

Solution (Python):
n = int(input())

L = []

import sys
if n ==0:
    print(0.0)
    sys.exit()

for val in range(n+1):
    if val % 2 ==1:
        L.append(val)
print(len(L)/n)

Solution (Python):

N = input()

if int(N) % 2 == 0:
  ans = 0.5
elif int(N) == 1:
  ans = 1
else:
  ans = ((int(N) - 1) /2 + 1) / int(N)

print(ans)

Solution (Python):
N = int(input())

prob_odd = (N //2 + N % 2) / N

print(prob_odd)

Solution (Python):
N = int(input())
count = 0
if N == 1:
    print(1)
else:
    for i in range(1,N+1):
        if i % 2 != 0:
            count += 1
    print(count/N)

Solution (Python):
N = int(input())

if N % 2 == 0:
    print(0.5)
else:
    print((N//2+1)/N)

Solution (Python):
N = int(input())

print(((N+1)//2)/N)

Solution (Python):
n=int(input())
print(1/2 if n % 2 == 0 else (n+1)/(2*n))

Solution (Python):
a = int(input())
if a%2==0:
    print("0.5")
else:
    b = a+1
    b = b/2
    print(b/a)

Solution (Python):
N = int(input())
if N % 2 == 0:
    print(0.5)
else:
    p = (N - (N-1)/2)/ N
    print(p)

Solution (Python):
def _input():
    n = int(input())
    return n

def probability(number):
    odd = 0
    for i in range(1,number + 1):
        if i % 2 == 1:
            odd += 1
    return round(odd / number, 6)

if __name__ == "__main__":
    number = _input()
    print('{:.9f}'.format(probability(number)))

Solution (Python):
n = int(input())
print((n - n // 2) / n)

Solution (Python):
N = int(input())
if N % 2 == 0:
    ans = 0.5
else:
    ans = ((N-1)/2 + 1)/N

print(ans)

Solution (Python):
N=int(input())
if N % 2 == 0:
    print(N/(2*N))
else:
    print((N+1)/(2*N))

Solution (Python):
N=int(input())

if(N%2==0):
  print(0.5)
else:
  print((N//2+1)/N)

Solution (Python):


def Odd_Judge(n):
    odd_num = int((n-1)/2) + 1
    return odd_num / n

if __name__ == "__main__":
    n = int(input())
    print(Odd_Judge(n))

Solution (Python):
n = int(input())

if n==1:
    ans = 1
elif n%2==0:
    ans = 0.5
else:
    ans = ((n-1)/2+1)/n

print(ans)

Solution (Python):
n  = int(input())
if n % 2 == 0:
  ans = 0.5
else:
  ans = (n//2+1) / n
print(ans)

Solution (Python):
sin = input()
n = int(sin)

if n % 2 == 1:
    print((-(-n // 2))/n)
else:
    print(1/2)

Solution (Python):
import sys

def main():

	p = 0

	args = sys.argv
	n = int(input())
	
	print((int(n/2) + n%2 )/n)

if __name__ == "__main__":
    main()

Solution (Python):
number = int(input())

count = 0
for i in range (1,number+1):
    if i % 2 == 1:
        count += 1
answer = count / number
print(answer)

Solution (Python):
N=int(input())
if N%2==0:
  a=N/2
  b=a/N
  print(b)
else:
  t=N+1
  c=t/2
  d=c/N
  print(d)

Solution (Python):
N = float(input())
if N%2==0:
  print(0.5)
else:
  n = N//2 +1
  print(n/N)

Solution (Python):
N=int(input())
 
print(1-int(N/2)/N)

Solution (Python):
n=int(input())
sum=0
for i in range(1,n+1):
  if i % 2==1:
    sum=sum+1

print(sum/n)

Solution (Python):
n = int(input())

if n % 2 == 0:
    print(0.5)
else:
    print(-(n//-2)/n)

Solution (Python):
N = int(input())

ans = ((N - 1) // 2 + 1) / N
print(ans)

Solution (Python):
N = int(input())
count = 0
for i in range(1,N+1):
    if i % 2 == 1:
        count = count + 1

result = count / N
print(result)

Solution (Python):

n = int(input())
ans = 0

if n == 1:
    ans = 1
elif n % 2 == 0:
    ans = 0.5
else:
    ans = ((n-1)/2+1)/n 
print(ans)

Solution (Python):
n = int(input())
m = n // 2
if n % 2 != 0:
    m += 1
print(m / n)

Solution (Python):
N=int(input())
if N%2 ==0:
    print(0.5)
else:
    print((N//2+1)/N)

Solution (Python):
N = int(raw_input())
ans = float(sum([1 for t in range(1,N+1) if t % 2 == 1])) / float(N)
print(ans)

Solution (Python):
N = int(input())
if N % 2 == 0:
  print(N / 2 / N)
else:
  print((N + 1) / 2 / N)

Solution (Python):
n = int(input())
print(int((n+1)/2)/n)

Solution (Python):
N = int(input())
if N % 2 == 0: print(0.5)
else: print((N // 2 + 1) / N)

Solution (Python):
n = int(input())
ans = int((n+1)/2) / n

print(ans)

Solution (Python):
N = int(input())

if N % 2 == 0:
    print(0.5)
else:
    print((N // 2 + 1) / N)

Solution (Python):
N = int(input())
if N%2==1:
    print((N//2+1)/N)
else:
    print(N//2/N)

Solution (Python):
n = int(input())

a=0.0
for i in range(1,n+1):
    if i%2==1:
        a += 1

print(float(a/n))

Solution (Python):
import sys
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

n = ni()

print(((n+1)//2)/n)

Solution (Python):
n=int(input())
a=n//2
print((n-a)/n)

Solution (Python):
N = int(input())

print(sum(a % 2 for a in range(N+1)) / N)

Solution (Python):
N = int(input())

if N % 2 == 0:
  print(1 / 2)
else:
  print((N-(N//2)) / N)

Solution (Python):
a = int(input())
if a % 2 == 0:
  print((a//2)/a)
else:
  print(((a//2)+1)/a)

Solution (Python):
import sys
import math
N = float(input())



print('{:.10f}'.format(math.ceil(N/2)/N))

Solution (Python):
x = int(input())
if x%2 == 0:
    print(0.5)
else:
    print((-(-x//2))/x)

Solution (Python):
n = int(input())
print((n - n // 2) / n)

Solution (Python):
a = int(input())
def is_even(a):
    return a%2 == 0
if is_even(a):
    print((a/2)/a)
else:
    print(((a + 1)/2)/a)

Solution (Python):
import math

N = int(input())

print( math.ceil(N/2)/N )

Solution (Python):
N = int(input())
ans = 0

if N%2 == 0 :
	print(0.5)
elif N == 1:
	print(1)
else :
	ans = (N+1)/2/N
	print(ans)

Solution (Python):
n=int(input())
print(((n>>1)+1)/n if n & 1 == 1 else 0.5)

Solution (Python):
N = int(input())
if N % 2 == 1:
  print(((N-1)/2.0+1)/N)
else:
  print(0.5000000000)

Solution (Python):
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac
import bisect
import sys
import logging
import heapq
logging.basicConfig(level=logging.DEBUG)

input = sys.stdin.readline

setrecursionlimit(1000000)

MOD = 10**9+7

def main():
    N=int(input())
    odd=0
    for i in range(1,N+1):
        if i % 2 == 1:
            odd+=1
    print(odd*1.0/N)
main()

Solution (Python):
n = float(input())

if n % 2 == 0:
  print("{:.10g}".format((n/2)/n))
elif n % 2 != 0:
  print("{:.10g}".format( ((n+1)/2)/n) )

Solution (Python):
N = input()
N = int(N)
count = 0
for i in range(N):
    if (i+1) % 2 == 1:
        count += 1

print("{0: .10f}".format(count/N))

Solution (Python):
N = int(input())
K = -(-N // 2)
print(K / N)

Solution (Python):
n=int(input())
if(n%2==0):
  print(0.5)
else:
  print((n-int(n/2))/n)

Solution (Python):
def main():
    n = int(input())
    print(((n + 1) // 2) / n)


if __name__ == "__main__":
    main()

Solution (Python):
N = int(input())
num = N
if N % 2 == 1:
  num += 1
ki_num = num / 2
kaku_ritsu = ki_num / N
print('{:.10f}'.format(kaku_ritsu))

Solution (Python):
n=int(input())
if(n%2==0):print(0.5)
else:
    x=n//2+1
    print(x/n)

Solution (Python):
n=int(input())
if(n%2==0):
  print(0.5)
else:
  print((n-int(n/2))/n)

Solution (Python):
n = int(input())
print((n//2+n%2)/n)

Solution (Python):
A = input()
N = int(A)


if N ==1:
    a = 1
elif N%2 == 0:
    a = 0.5
    a = float(a)
elif N%2 == 1:
    a = (N//2 + 1)/N

print(a)

Solution (Python):
a = int(input())
b = 0
ans = 0
if a % 2 != 0:
  b = a / 2 + 0.5
  ans = b / a

else:
  b = a /2
  ans = b / a

print(ans)

Solution (Python):
N = int(input())
if N % 2 == 0:
  print(1 / 2)
else:
  print((N // 2 + 1) / N)

Solution (Python):
import sys
import math
N = int(sys.stdin.readline())



odd = []
oddness = []


for i in range(N):
    j = i + 1
    if j % 2 != 0:
        odd.append(j)



answer = float(len(odd)) / float(j)
print(answer)

Solution (Python):
N = int(input())

a = 0
for i in range(N):
  if (i + 1 ) % 2 == 1:
    a += 1

print(a/N)

Solution (Python):
N = int(input())
if N == 1:
  print(1)
elif N // 2 * 2 == N:
  print(0.5)
else:
  print((N//2+1)/N)

Solution (Python):
N = int(input())
if N%2==0:
    print((N/2)/N)
else:
    print(((N//2)+1)/N)

Solution (Python):
n = int(input())

if n % 2 == 0:
    print(1 / 2)
else:
    print((((n - 1) / 2) + 1) / n)

Solution (Python):
N = [int(x) for x in raw_input().split(' ')][0]
half = N / 2
print((N-half) * 1.0 / N)

Solution (Python):


num = int(input())

if num%2 == 0:
    print(num/2/num)
else:
    print((num+1)/2/num)

Solution (Python):
n = int(input())
odd_cnt= len([a for a in range(n+1) if a%2==1])

prob= (odd_cnt)/float(n)

print (prob)

Solution (Python):

N = int(input())

print((N + 1) // 2 / N)

Solution (Python):
a = int(input())

if a%2==0:
  ans = (a/2)/a

if a%2==1:
  ans = (a+1)/2/a

print(ans)

Solution (Python):
n=int(input())
if n%2==0:
    print(0.500000)
elif n==1:
    print("1")
else:
    b=(n-1)/2+1
    print(b/n)

Solution (Python):
N = int(input())

if N % 2 == 0:
    print("0.500000")

else:
    print(round((N + 1) / (2 * N), 6))

Solution (Python):
N = int(input())

even = N // 2 if N % 2 == 0 else int(N / 2) + 1
print(even / N)

Solution (Python):
n=int(input())
if n%2==0:
    print(0.5)
else:
    print((n//2+1)/n)

Solution (Python):
x = int(input())
a = None

if x%2==0:
    a = 1/2
else:
    a = (x+1)/(2*x)

print(a)

Solution (Python):
n = int(input())
print((n//2 + n%2)/n)

Solution (Python):
N = int(input())
num = 0
for i in range(1,N+1):
  if i%2==1:
    num += 1
print(float(num/N))

Solution (Python):

N= input()
N = int(N)
x = -( - N // 2) / N
print(x)

Solution (Python):
import math
N=int(input())
if N%2==0:
    print((N/2)/N) 
elif N==1:
    print(N/N)
else:
    round_number=math.ceil(N/2)
    print(round_number/N)

Solution (Python):
n = int(input())
if n % 2:
    print(-(-n//2) / n)
else:
    print((n//2) / n)

Solution (Python):
n = int(input())
if n%2 == 0:
    ans = 0.5
else:
    ans = ((n-1)/2 + 1)/n

print(ans)

Solution (Python):

import sys
import os



n = float(input())

if n % 2 == 1:
    
    print((n // 2 + 1) / n)
else:
    
    print(1.0/2.0)

Solution (Python):
import math
n = int(input())

f = math.ceil(n/2)

print(f/n)

Solution (Python):
n = int(input())
if n%2 == 0:
  print(1/2)
else:
  print((n+1)/2/n)

Solution (Python):


N=int(input())
if N%2==0:
    P=0.5
else:
    n=N//2
    P=(N-n)/N
print(P)

Solution (Python):
N = int(input())
if N % 2 == 0:
    print(0.5)
else:
    print((N+1)/(2*N))

Solution (Python):
n = int(input())
print(-(-n//2)/n)

Solution (Python):
import math
N=int(input())
print(math.ceil(N/2) / N)

Solution (Python):
n = int(input())
print(((n//2)+ int(n&1))/n)

Solution (Python):



def solve(arg: str) -> str:
    N = int(arg)
    return str(int((N+1) / 2) / N)


if __name__ == "__main__":
    print(solve(input()))

Solution (Python):
a=int(input())
print(-((a*-1)//2)/a)

Solution (Python):
N=int(input())
onum=len(list(filter(lambda x: x%2!=0, [i+1 for i in range(N)])))
print("{:.10f}".format(onum/N))

Solution (Python):
n = int(input())
count = 0
for i in range(1, n+1):
    if i % 2 == 1:
        count += 1

print('{:.10f}'.format(count/n))

Solution (Python):
N = int(input())
odd = 0
for i in range(1, N + 1):
  if i % 2 != 0:
    odd += 1
ans = odd / N
print(ans)

Solution (Python):
N = int(input())

count = 0
for i in range(1,N+1):
    if i%2 != 0:
        count += 1
        
print('{:.10f}'.format(count/N))

Solution (Python):
N=int(input())
if N%2==0:
    print(1/2)
else:
    print((N//2+1)/N)

Solution (Python):

import sys
n = int(input())
if (n % 2) == 0:
    print('{0:.10f}'.format(0.500000000))
    sys.exit()

ans = (n // 2 + 1) / n
print('{0:.10f}'.format(ans))

Solution (Python):
n = int(input())

if n == 1:
    print('1.0')
elif n % 2 == 1:
    
    
    b = n // 2 + 1
    print (b/n)
else:
    print ('0.5')

Solution (Python):
str = input()

num = int(str)

c = 0.0

for i in range(num + 1):
    if i % 2 != 0:
        c += 1

print(c / num)

Solution (Python):
n=int(input())
if(n%2==0):
    print('0.5')
else:
    print('{0}'.format(0.5+1/(2*n)))

Solution (Python):
n = int(input())
if n == 1:
    print(1)
elif n % 2 == 0:
    print(0.5)
else:
    odds = n // 2 + 1
    print(odds/n)

Solution (Python):
n = int(input())

cnt = 0
for i in range(1,n+1):
    if i%2 == 1:
        cnt += 1

print(cnt/n)

Solution (Python):
N = int(input())
odd = 0
same = 0
for x in range(1,N+1,1):
  if x % 2 == 0:
    same += 1
  else:
    odd += 1
print(odd / (odd + same))

Solution (Python):
n=int(input())

cnt=0
for i in range(1, n+1):
    if i % 2 != 0:
        cnt+=1
        
print(cnt/n)

Solution (Python):
n = int(input())
ans = 0.0
if n%2==1:
    ans = ((n//2)+1) / n
else:
    ans = 1.0/2.0
print(ans)

Solution (Python):
x=int(input())
y=x//2
z=x-y
print(z/x)

Solution (Python):
N = int(input())

if N == 1:
  print(1)
elif N % 2 == 1:
  print(((N-1)/2+1)/N)
elif N % 2 == 0:
  print(1/2)

Solution (Python):
import random
n = int(input())
x = random.randint(1,n)
if n % 2 ==0:
  print(0.5)
else:
  count = n//2
  print((n-count)/n)

Solution (Python):
N = float(input())
print(((N+1)//2)/N)

Solution (Python):
num=int(input())
if(num%2==0):
    ans=0.5
    print("%.6f"%ans)
else:
    ans=(num+1)/2
    ans/=num
    print("%.6f"%ans)

Solution (Python):


N = int(input())
count = 0
for a in range(1, N+1):
  if a % 2 != 0:
  	count += 1
print('{}'.format(count/N))

Solution (Python):

import sys


def solve(N: int):
    if N%2 == 0:
        print(1/2)
    else:
        print((N//2+1)/N)



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
print(1.0 if n==1 else 0.5 if n%2 == 0 else (n//2 + 1)/n)

Solution (Python):
N = int(input())

if N == 1:
    print("1")

elif N % 2 == 0:
    k = (N/2) / N
    print(k)

else:
    k = ((N+1)/2) / N
    print(k)

Solution (Python):
n=int(input())
if n%2 == 0:
  print(1/2)
else:
  print(((n+1)/2)/n)

Solution (Python):
N =int(input())
if N%2 == 0:
  print(0.5)
if N%2 == 1:
  a = (N+1)/2
  print(a/N)

Solution (Python):
N = int(input())
if N==1:
    print(1)
elif N%2 == 0:
    print((N/2)/N)
else:
    print(((N+1)/2)/N)

Solution (Python):
N = int(input())
print((-(-N // 2)) / N)

Solution (Python):
N = int(input())
q = N // 2
mod = N % 2
ans= (q+mod)/N
print(ans)

Solution (Python):
import math

N = int(input())

a = float(N/2)

b = math.ceil(a)

od = float(b/N)



print(od)

Solution (Python):
inp = int(input ())

from decimal import *

getcontext().prec = 6

if inp%2 == 0:
    print('0.5000000000')
else:
    answer = Decimal(int(inp//2 + 1))/Decimal(inp)
    print(answer)

Solution (Python):
n = int(input())
print(sum([(i + 1) % 2 == 1 for i in range(n)]) / n)

Solution (Python):
n=int(input())
if n%2==0:
    print(0.5)
else:
    print((n//2+1)/n)

Solution (Python):
n = int(input())
count = 0
for i in range(n):
    if (i+1)%2 == 1:
        count += 1

print(count/n)

Solution (Python):
n = int(input())
cnt = 0
for x in range(1, n + 1):
    if x % 2 == 1:
        cnt += 1
print(format(cnt / n, '.6F'))

Solution (Python):
N = int(input())

if N == 1:
    P = 1
if N % 2 == 0:
    P = 0.5
else:
    P = (N//2 + 1)/ N

print(P)

Solution (Python):
n = int(input())

odd = n // 2 + 1 if n % 2 else n // 2 

print(odd / n)

Solution (Python):
N = int(input())
count = 0
for i in range(1,N+1):
  if i%2 != 0:
    count += 1
  
print(count/N)

Solution (Python):
n = int(input())

if n%2>0:
  ans = int(n/2)+1
  print(format(ans/n, '.11f'))
  
else:
  ans = int(n/2)
  
  print(format(ans/n, '.11f'))

Solution (Python):
import sys


def input():
    return sys.stdin.readline().rstrip()


def main():
    N = int(input())
    if N == 1:
        print("1")
    elif N % 2 == 0:
        print(1 / 2)
    else:
        print(((N-1)/2 + 1) / N)


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
c = 0
for i in range(1,n+1):
  if i%2 != 0:
    c += 1
print(float(c)/float(n))

Solution (Python):
N=int(input())
ans=0
A=0
 
if N%2==1:
    A=int(N/2)+1
    ans=A/N
    print(ans)
else:
    ans=1/2
    print(ans)

Solution (Python):
N = int(input())
if N %2 == 0:
    print(0.5)
else:
    print((N//2+1)/N)

Solution (Python):
N = int(input())
print(int(N/2+0.5)/N)

Solution (Python):
a = int(input())
b = 0
for i in range(a):
    if i % 2 == 0:
        b += 1
print(b / a)

Solution (Python):
N = int(input())
nums = [i for i in range(1, N+1)]
ans = nums[0::2]
print(len(ans)/len(nums))

Solution (Python):
N = int(input())
print(-(-N//2)/N)

Solution (Python):
N = float(input())
print(float((N - N // 2) / N))

Solution (Python):
import math
N = int(input())

kisu = math.floor((N+1)/2)

ans = kisu/N

print(ans)

Solution (Python):
import math

num = float(input())
odd_cnt = math.ceil(num / 2)
ratio = odd_cnt / num

print(format(ratio, '.10f'))

Solution (Python):
num = int(input())

if num % 2 == 0:
    print(1/2)
else:
    print((num//2 + 1)/num)

exit(0)

Solution (Python):

N = int(raw_input())

count = 0.0

for i in xrange(1,N+1):
    if i%2 != 0:
        count += 1
    
print("{0:.10f}".format(count/N))

Solution (Python):
n = int(input())
if n % 2 == 0:
  ans = 0.5
else:
  ans = (n + 1) / (2 * n)
print(ans)

Solution (Python):
def sub_a():
    n = int(input())
    count = 0
    for i in range(n+1)[1:n+1]:
        if i % 2 != 0:
            count += 1
    ret = count / n
    print(ret)


if __name__ == '__main__':
    sub_a()

Solution (Python):
n = int(input())

if n == 1:
    print('{0:.10f}'.format(1))
else:
    a = n%2
    if a == 1:
        amari = ((n-1)/2 +1)/n
        print('{0:.10f}'.format(amari))
    else:
        print('{0:.10f}'.format(0.5))

Solution (Python):
n = int(input())
data = [i for i in range(1,n+1)]
r = 0

for i in data:
  if i % 2 != 0:
    r += 1

print(float(r)/n)

Solution (Python):
N = int(input())
odd = 0
for n in range(1, N+1):
    if n % 2 == 1:
        odd += 1

print(odd/N)

Solution (Python):
N = int(input())

count = 0

for i in range(1,N+1):
  if i%2 == 1:
    count += 1

print(count/N)

Solution (Python):
a = int(input())

if (a % 2 == 0):
    print("0.50000000")
else:
    b = (a // 2) + 1
    c = b / a
    print(c)

Solution (Python):


N = int(input())
 
if N%2 == 0:
     print(0.5)
else:
    print(1-int(N/2)/N)

Solution (Python):
N=input()
N=int(N)
even=0
odd=0

for n in range(N):
    if (n+1)%2==0:
        even=even+1
    else:
        odd=odd+1

print(odd/N)

Solution (Python):

import sys


def solve(N: int):
    p = 0
    if N % 2 == 0:
        p = 1 / 2
    else:
        p = ((N - 1) / 2 + 1) / N
    print("{0:.10f}".format(p)) 
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
if n % 2 == 0:
    print(1/2)
else:
    print((n // 2 + 1) / n)

Solution (Python):
import math
N = int(input())
print(math.ceil(N / 2) / N)

Solution (Python):
n = int(input())

num_odds = int(n/2)
if n%2 != 0:
    num_odds += 1
print(num_odds/n)

Solution (Python):
N = int(input())
cnt = 0
for i in range(1,N+1):
   if i % 2 == 1:
       cnt += 1

print(cnt / N)

Solution (Python):
n = int(input())
print( (n//2 + n%2 )/n )

Solution (Python):
n = int(input())
if n%2==0 :
    print(1/2)
else:
    print((n+1)/2 / n)

Solution (Python):
n = int(input())

if n % 2 == 0:
	print(0.5)
else:
	print((n//2+1)/n)

Solution (Python):
N = int(input())
i = 0
for n in range(1,N+1):
    if n%2 != 0:
        i += 1
print(i/N)

Solution (Python):
N=int(input())
if N%2==0:
    print(int(N/2)/N)
    
else :
    print(int(N/2+1)/N)

Solution (Python):
n = int(input())
import math
print(math.ceil(n / 2) / n)

Solution (Python):
N = int(input())

if N == 1:
  print(1)
elif N%2 == 0:
  print(0.5)
else:
  print((N//2+1) / N)

Solution (Python):
n = int(input())
print('%.10f' % ((n//2 + n%2)/n))

Solution (Python):
n = int(input())

odd = n
if n%2==1:
    odd += 1

odd /= 2
print( odd / n )

Solution (Python):
n = int(input())

print((n // 2 + n % 2) / n)

Solution (Python):
N = int(input())
if N % 2 == 0:
    print(0.5)
else:
    print(1.0 * ((N + 1) / 2) / N)

Solution (Python):
N = int(input())
ans = (N//2 + N%2)/N
print(ans)

Solution (Python):
n = int(input())
if n==1:
        print(1.)
elif n % 2 ==0:
        print(1/2)
else:
        print( ((n-1)/2+1) / n)

Solution (Python):
def resolve():
    n=int(input())
    m=n//2
    print(1-m/n)
resolve()

Solution (Python):
S = int(input().rstrip())

if S % 2 == 0:
    print(1/2)
elif S % 2 == 1:
    print((int(S/2)+1)/S)

Solution (Python):
ako=int(input())
if(ako%2==0):
  ask=ako//2
else:
  ask=ako//2+1
answer=ask/ako
print(answer)

Solution (Python):
N = int(input())

if N%2 == 0:
    print(0.5)
else:
    print((N-N//2)/N)

Solution (Python):


N = int(input())
if N % 2 == 0:
    print(float((N / 2) / N))
else:
    print(float(int(((N / 2) + 1)) / N))

Solution (Python):
n = int(input())

if n == 1:
    print(1)
    
elif n % 2 == 0:
    print(0.5)
else:
    print((n//2 + 1) / n)

Solution (Python):
n = int(input())
numbers = []
for i in range(n):
  if (i + 1) % 2 != 0:
    numbers.append(i + 1)
print(len(numbers) / n)

Solution (Python):
N = int(input())

odd = []

for num in range(1, N+1):
  if num % 2 == 1:
    odd.append(num)

a = len(odd) / N

print('{:.10f}'.format(a))

Solution (Python):
from decimal import Decimal


N = int(input())

if N%2 == 0:
    ans = 0.5000000000
else:
    ans = ((N+1)/2)/N

print('{:.10f}'.format(Decimal(ans)))

Solution (Python):
N = int(input())

count = 0
for i in range(1,N+1):
    if i%2==1:
        count+=1
    else:
        pass

print(count/N)

Solution (Python):
n=int(input())
cnt=0
res=0.0
for i in range(1,n+1):
  if i%2==1:
    cnt+=1
    
res = cnt/n
print(res)

Solution (Python):
N = int(input())

if N % 2 == 0:
  print(1/2)
else:
  n = N // 2 + 1
  print(n /N )

Solution (Python):
N = int(input())

if N % 2 != 0:
    ans = ((N+1)//2) / N
else:
    ans = (N//2) / N

print(ans)

Solution (Python):

from decimal import *

a = int(input())
if a%2 ==0:
    ans = Decimal(a//2)/Decimal(a)
else:
    ans = Decimal(a//2 + 1 )/Decimal(a)
print(ans)

Solution (Python):
from sys import stdin
from itertools import accumulate, dropwhile, takewhile, groupby




'''
条件に合うものを絞り込む
data = [1, 2, 3]
s = [x for x in data if x % 3 == 0]
'''

'''
文字配列を数値に
l_si = ['-10', '0', '100']

l_si_i = [int(s) for s in l_si]
'''

'''
a = [2, 4, 6, 8]
b = [3, 6, 9]

print(list(set(a) | set(b)))  
print(list(set(a) & set(b)))  
'''

'''
N = int(stdin.readline().rstrip())
A = [int(x) for x in stdin.readline().rstrip().split()]
count = 0
while len([x for x in A if x % 2 == 0]) == N:
    A = list(map(lambda y: y / 2, A))
    count += 1
print(count)
'''

'''
.append(要素)
.insert(場所,要素)
-1で末尾で末尾から一つ前
'''


N = int(stdin.readline().rstrip())
T = list(range(1, N+1))
t = len([x for x in T if x % 2 == 1])
print(t/len(T))

Solution (Python):
N = int(input())
print(1 - N // 2 / N)

Solution (Python):
N = int(input())

if N%2==0:
    result = 0.5
elif N==1:
    result = 1
else:
    result = ((N//2)+1)/N

print(result)

Solution (Python):
n=int(input())
if n%2==0:
  print(0.5)
else:
  print((n+1)/2/n)

Solution (Python):
import math

if __name__ == '__main__':
    a = int(input())
    guusuu = a % 2 == 0
    if guusuu:
        print("0.5000000000")
    else:
        val_kisuu = math.ceil(a / 2)
        print('{:.9f}'.format(val_kisuu / a))

Solution (Python):
n = int(input())
if(n == 1):
	print(1)
else:
	if(n % 2 == 0):
		print(0.5)
	else:
		temp = n // 2 + 1
		print(temp/n)

Solution (Python):
if __name__ == "__main__":
	num = int(input())

	if num % 2 == 0:
		print("0.5")
	else:
		print(str((num // 2 + 1) / num))

Solution (Python):



import sys, os

def main():
    ans = 0
    N = int(input())
    if (N%2 == 1):
        ans = 1-((N-1)/(2*N))
    else:
        ans = 0.5
    print (ans)


if __name__ == "__main__" :
    main()

Solution (Python):
N = int(input())

count = 0
for i in range(1,N+1):
    if i%2==1:
        count+=1
    else:
        pass

print(count/N)

Solution (Python):
N = int(input())

even = N // 2
odd = N - even

print(odd / float(N))