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-----
4

-----Sample Output-----
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.

Difficulty: introductory

Starter code:

Solutions:
def readinput():
    n=int(input())
    return n

def main(n):
    if n%2==0:
        return 0.5
    else:
        return (n//2+1)/n


def __starting_point():
    n=readinput()
    ans=main(n)
    print(ans)

__starting_point()

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

n=int(input())
print(((n+1)//2/n))


n = int(input())

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

N = int(input())

# N=2n => p=1/2
# N=2n-1 => p=n/N=(N+1)/(2N)
print((N-N//2)/N)

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

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

import sys

sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    n = int(input())

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


def __starting_point():
    resolve()

__starting_point()

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


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

N = int(input())

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

n = int(input())

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

N=int(input())
print(((N+1)//2)/N)

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

n=int(input())
print((n//2+n%2)/n)

n = int(input())
print(-(-n//2)/n)

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

3
import sys
input = lambda: sys.stdin.readline().strip()
n = int(input())
odd = sum(1 for i in range(1, n + 1, 2))
even = sum(1 for i in range(2, n + 1, 2))
print((odd / (odd + even)))


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

n = int(input())
even, odd = 0, 0
for i in range(1, n+1):
    if i%2 == 0:
        even += 1
    else:
        odd += 1
print(odd/n)

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

def resolve():
    n = int(input())
    if n % 2 == 1:
        print((n//2+1)/n)
    else:
        print(n//2/n)
resolve()

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

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

n=int(input())
print(((n+1)//2)/n)

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

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

import sys

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

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

# 問題：https://atcoder.jp/contests/abc142/tasks/abc142_a

n = int(input())
res = (n+1)//2
res /= n
print(res)



n = int(input())

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

n = int(input())

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

N = int(input())
print((N // 2 + N % 2) / N)

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

n=int(input());print(sum(i%2==0 for i in range(n))/n)

a = int(input())
b = 0
for i in range(1,a+1):
    if i % 2 != 0:
        b += 1

sub = b/a

print(sub)

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


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

n=int(input())

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

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

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

print(float(count / n))

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

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


user_input=int(input())
count=0
for i in range(0,user_input+1):
    if i %2 !=0:
        count+=1
final_result=count/user_input
print("%.10f"%final_result)

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


n=int(input())
print(1-(n//2)/n)

import math

n=int(input())

print((n-math.floor(n/2))/n)

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

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

n = int(input())
print(((n + 1) // 2)/n)

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

n = int(input())

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

ans = cnt/n
print(ans)

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

n=int(input())
print(((n//2+n%2)/n))


X = int(input())
print(((X//2)+1)/X if X % 2 != 0 else 0.5)

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

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

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

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


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



N = int(input())
print(((N+1)//2)/N)

N = int(input())

print((N - N // 2) / N)

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


N = int(input())

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



N = int(input())
count = 0

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

print(count/N)

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

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

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

n = int(input())

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


N = input()
n = int(N)
even =int(n//2)
odd = int(n-even)
print((odd/n))



n=int(input())
if n%2==0:
    print('0.5000000000')
elif n==1:
    print('1.000000000')
else:
    print((n//2 + 1)/n)

n=int(input())
x=int(n/2)
x=n-x
ans=x/n
print(ans)

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

n=int(input())

print((1-(n//2)/n if not n%2==0 else 0.5000000000))


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

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

n=int(input())
print(((n+1)//2)/n)

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

n = int(input())
a = 0

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

a = a + 1
print('{:.08f}'.format(a / n))

N = int(input())

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

print(ans)

n = int(input())
print((n-n//2)/n)

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

#142-A

N = int(input())

D = []

for i in range(1,N+1):
    D.append(i)

#print(D)

cnt = 0

for j in D:
    if j % 2 != 0:
        cnt += 1


#print(cnt)
print((cnt / len(D)))    


n=int(input())
print(((n+1)//2)/n)

N = int(input())

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

n = int(input())
print((((n + 1) // 2) / n))


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

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

N = int(input())

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

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

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

N = int(input())
L = [i for i in range(1, N + 1) if i % 2 != 0]
A = len(L) / N
print(A)

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

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

n = int(input())

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


N = int(input())

num_even = N//2
num_odd = N - num_even

print(num_odd/N)

n=int(input())
print(((n//2+n%2)/n))


n=int(input())
print((n+1)//2/n)

N = int(input())

g = 0
for n in range(1, N + 1):
    if n % 2 == 0:
        g += 1

ANS = (N - g) / N

print(ANS)

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

n = int(input())
print(((n+1)//2)/n)