#include<stdio.h>
main()
{
// Declarations
char str[100];
int i,n,sign;
// Initializations
i=0;
n=0;
scanf("%s",str);
// First string can be '+','-','tab','space','newline',numbers
if((str[0]!='+') && (str[0]!='-') && (str[0]!='\t') && (str[0]!='\n') && (str[i]==' '))
{
if((str[0]<'0') || (str[0]>'9'))
{
return ;
}
}
else
{
// Getting the sign value
sign=(str[0]=='-')?-1:1;
if((str[i]=='+') || (str[i]=='-') || (str[i]=='\n') || (str[i]=='\t') || (str[i]==' '))
i++;
// Converting string to integer
while(str[i]>='0' && str[i]<='9')
{
n=n*10+(str[i]-'0');
i++;
}
n=n*sign;
printf("%d",n);
}
}