#include <iostream>
#include <iomanip> 
using namespace std;
int main(){
    int e = 258 / 100;	
    int y = 258 %10;
	int u = 258 / 10 % 10;
	int r =u+y+e;
	cout<<r<<endl;
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
} 

