#include
#include
using namespace std;
int a[30]={1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3```c
#include
#include
using namespace std;
int a[30]={1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3,1,2,3,4};
int main()
{
char n;
int t=0;
while ((n=getchar())!='\n')
{
n-=97;
if (n!=-65)
{
t+=a[n];
}
else
{
t++;
}
}
cout<<t<<endl;
return 0;
}
,1,2,3,4};
int main()
{
char n;
int t=0;
while ((n=getchar())!='\n')
{
n-=97;
if (n!=-65)
{
t+=a[n];
}
else
{
t++;
}
}
cout<<t<<endl;
return 0;
} **