#include < iostream >
using namespace std;
bool check(int k){
while(k > 0){
if(k % 10 == 3)
return true;
k /= 10;
}
return false;
int main(){
int a[5], cnt = 0;
double sum = 0;
for(int i = 0; i < 5; i++)
cin >> a[i];
for(int i = 0; i < 5; i++){
if(a[i] % 2 == 0 && check(a[i])){
sum += a[i];
cnt++;
cnt == 0 ? cout << 0 : cout << sum / cnt;
#include < iostream >
using namespace std;
bool check(int k){
while(k > 0){
if(k % 10 == 3)
return true;
k /= 10;
}
return false;
}
int main(){
int a[5], cnt = 0;
double sum = 0;
for(int i = 0; i < 5; i++)
cin >> a[i];
for(int i = 0; i < 5; i++){
if(a[i] % 2 == 0 && check(a[i])){
sum += a[i];
cnt++;
}
}
cnt == 0 ? cout << 0 : cout << sum / cnt;
}