num=int(input("digite o numero"))
soma=0
i=0
b=0
while(num!=0):
	i=i+1
	b=b+1
	if num%2==0:
		par=par+num
	
	else:
		impar=impar+num
soma1=par/i
soma2=impar/i
media=par/i
print(round(soma1,2)
print(round(soma2,2)