#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
float NUM = 0;
int Flag = 0;
double Flag1 = 1.0;
double Flag2 = 1.0;
double RES = 0;
string INStr = "";
string ResStr = "";
int SetFlag(char, char);
int GetNUM(string, int);
int main()
{
cin >> INStr;
Flag = SetFlag(INStr[0], INStr[INStr.length() - 1]);
GetNUM(INStr,Flag);
RES = (NUM / (INStr.length() - Flag) * Flag1 * Flag2) * 100;
cout << setiosflags(ios::fixed)<<setprecision(2) << RES << "%" << endl;
return 0;
}
int SetFlag(char chBegin,char chEnd)
{
if(0 == (chEnd - '0') % 2)
{
Flag2 += 1.0;
}
if('-' == chBegin)
{
Flag1 += 0.5;
return 1;
}
return 0;
}
int GetNUM(string INStr, int Flag)
{
for(size_t i = Flag; i < INStr.length(); ++i)
{
if(2 == INStr[i] - '0')
{
NUM += 1;continue;
}
}
}
09-03
364
05-28
1408
09-22
532
09-10
1159
09-10
863