#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
int a[20],count=0,ans=0;
for(int i=0;i<20;i++)
{
scanf("%d",&a[i]);
if(a[i]<0)
count++;
else
ans+=a[i];
}
printf("%d\n",count);
printf("%.2f",(float)ans/(20-count));
return 0;
}
#include<iostream>
#include<stdio.h>
using namespace std;
int gcd(int m,int n)
{
while(m>0)
{
int c=n%m;
n=m;
m=c;
}
return n;
}
long lcm(int x,int y)
{
return (x*y)/gcd(x,y);
}
int main()
{
int a,b;
scanf("%d%d",&a,&b);
cout<<gcd(a,b)<<endl<<lcm(a,b)<<endl;
return 0;
}
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
int count,blank,num,other;
count=blank=num=other=0;
char e;
while((e=getchar())!='\n')
{
if((e>='a'&&e<='z')||(e>='A'&&e<='Z'))
count++;
else if(e==' ')
blank++;
else if(e>='0'&&e<='9')
num++;
else{
other++;
}
}
printf("%d\n%d\n%d\n%d\n",count,blank,num,other);
return 0;
}