#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    char c,d;
    cin>>a>>c>>b>>d;
    cout<<a+b; 
    return 0;
}
/**************************************************************
	Problem: 1130
	User: wangyiyang
	Language: C++
	Result: Accepted
	Time:10 ms
	Memory:2072 kb
****************************************************************/