Problem2152--Output average

2152: Output average

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 423  Solved: 11
[Submit] [Status] [Web Board] [Creator:]

Description

Input n numbers to the array, find the average of odd and even numbers respectively, and use the pointer to return the average of odd and even numbers respectively

Input

Given n numbers

Output

output average of odd and even

Sample Input Copy

1 2 3 4 5

Sample Output Copy

3 3

Source/Category

189