#include <bits/stdc++.h>
using namespace std;
long long n,i,dem,t;
int main()
{
cin>>n;
dem=0; t=0;
for (i=0; i<=n; i++)
if (i%2==0)
{
dem++;
t=t+i;
}
cout<<dem<<" "<<t;
return 0;
}
Var s,so,i,n,dem:integer;
Begin
Write('Nhap n = ');readln(n);
For i:=0 to n do
Begin
Write('Nhap so thu ',i,' = ');readln(so);
If so mod 2 = 0 then
Begin
dem:=dem+1;
s:=s+so;
End;
End;
Writeln('Co ',dem,' so chan');
Write('Tong cua chung la ',s);
Readln;
End.