#include<iostream>
using namespace std;
int strtoint(const char *temp_str)
{
if(temp_str==NULL)
return 0;
int temp_int=0;
const char *ptr=temp_str;
if(*ptr=='-' || *ptr=='+')
ptr++;
while(*ptr!=0)
{
if((*ptr<'0') || (*ptr>'9'))
break;
temp_int=temp_int*10+(*ptr-'0');
ptr++;
}
if(*temp_str=='-')
temp_int=-temp_int;
return temp_int;
}
int main()
{
char str[10]="";
int n=0;
cin.getline(str,20);
n=strtoint(str);
cout<<n<<endl;
return 0;
}