#include<bits/stdc++.h>
using namespace std;
const int N = 60;
string s;
int main()
{
double sum = 0;
bool a = false;
cin>>s;
if(s[0] == '-') a= true;
for(int i =0;i<s.size();i++) if(s[i] == '2') sum++;
//负数
double aa;
if(a) aa = sum / (s.size()-1) * 1.5;
else aa = sum / s.size();
//判断一个数是否是偶数,我们只需判断最后一位即可
if((s[s.size()-1] - '0' ) % 2 == 0) aa *= 2;
aa*=100;
cout<<fixed<<setprecision(2)<<aa<<"%"<<endl;
return 0;
}