#include<bits/stdc++.h>
#include<string.h>
using namespace std;
int main()
{
char a[100];
cin>>a;
int n = strlen(a);
int sum = 0;
for(int i = 0;i<n;i++)
{
sum = sum+(a[i]-48);
}
cout<<sum;
}
#include<bits/stdc++.h>
#include<string.h>
using namespace std;
int main()
{
char a[210];
cin>>a;
int n = strlen(a);
int p = -1;
for(int i = 0;i<n;i++)
{
if(a[i]==',')
{
p = i;
break;
}
}
for(int i = p-1;i<n;i++)
{
cout<<a[i];
}
cout<<",";
for(int i =0;i<p;i++)
{
cout<<a[i];
}
}
#include<string.h>
#include<iostream>
using namespace std;
int main()
{
char a[110];
cin>>a;
int n=strlen(a);
int cnt = 0;
while(true)
{
bool f = true;
for(int i=0;i<n;i++)
{
if(a[i] != a[n-1-i])
{
f = false;
break;
}
}
if(f == true&&n%2==0)
{
n =n/2;
cnt++;
}
else
{
break;
}
}
cout<<cnt;
return 0;
}
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[110];
cin>>a;
int n = strlen(a);
int cnt;
int p = -1;
for(int i = 0;i<n;i++)
{
if(a[i] =='.')
{
p = i;
break;
}
}
for(int i = 0;i<p;i++)
{
int c = (int)a[i]
cnt[c]++;
}
for(int i = 97;i<=122;i++)
{
if(cnt[i]>0)
{
cout<<cnt[i];
}
}
cout<<endl;
return 0;
}
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[110];
cin>>a;
int n = strlen(a);
int p = -1;
for(int i = 0;i<n;i++)
{
if(a[i] =='.')
{
p = i;
break;
}
}
for(int i = 0;i<p/2;i++)
{
if(a[i] !=a[p]-1-i)
{
cout<<"no";
return 0;
}
}
cout<<"yes";
return 0;
}
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[110];
cin>>a;
int n = strlen(a);
char c;
cin>>c;
int p = -1;
for(int i = 0;i<n;i++)
{
if(a[i] ==c)
{
p=i;
break;
}
}
for(int i = p;i<n;i++)
{
a[i] = a[i+1];
}
a[n-1] = '\0';
n--;
cout<<a;
return 0;
}
#include<bits/stdc++.h>
#include<string.h>
using namespace std;
int main()
{
char a[210];
cin>>a;
int n = strlen(a);
for(int i = 0;i<n;i++)
{
if(a[i]>=65;&&a[i]<=90)
{
a[i] = a[i]+32;
}
if(a[i]>=97;&&a[i]<=122)
{
a[i] = a[i]-32;
}
}
cout<<a;
}
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[110];
cin>>a;
int n = strlen(a);
int cnt[110] = {0};
for(int i = 0;i<n;i++)
{
cnt[a[i]]++;
}
for(int i = 97;i<=122;i++)
{
if(cnt[i]>0)
{
cout<<(char)i<<":"<<cnt[i]<<".";
}
}
return 0;
}
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[110];
cin>>a;
int n = strlen(a);
int cnt[110] = {0};
while(true)
{
for(int i = 0;i<n;i++)
{
if(a[i] ==c)
{
p=i;
break;
}
}
if(p == -1) break;
for(int i = p;i<n;i++)
{
a[i] = a[i+1];
}
a[n-1] = '\0';
n--;
}
cout<<a;
return 0;
}