num = input()
xzoj = 0
zoj = 0
fard = 0
xfard = 0
for i in range(len(num)):
if int(num[i]) % 2 ==0:
xzoj +=1
zoj += int(num[i])
else :
xfard +=1
fard +=int(num[i])
print(zoj / xzoj)
print(fard / xfard)
#include
#include <stdio.h>
int main()
{
int i, n;
printf("Enter the value of n : ");
scanf("%d", &n);
printf("Number Square Cube
");
for (i = 1; i < n + 1; i++)
{
printf("%d %d %d
", i, i * i, i * i * i);
}
return 0;
}
#include <stdio.h>
int main()
{
int i, n;
printf("Enter the value of n : ");
scanf("%d", &n);
printf("Number Square Cube
");
for (i = 1; i < n + 1; i++)
{
printf("%d %d %d
", i, i * i, i * i * i);
}
return 0;
}