namespace practice0 { internal class Program {
static void Main(string[] args)
{
string input = Console.ReadLine();
input = input.Replace(" ", "");
if (input.Contains("+"))
{
int a=Convert.ToInt32(input.Substring(0,input.IndexOf("+")));
int b = Convert.ToInt32(input.Substring(input.IndexOf("+")+1));
Console.WriteLine("{0}", a + b);
return;
}
if (input.Contains("-"))
{
int a = Convert.ToInt32(input.Substring(0, input.IndexOf("-")));
int b = Convert.ToInt32(input.Substring(input.IndexOf("-") + 1));
Console.WriteLine("{0}", a);
Console.WriteLine("{0}", b);
Console.WriteLine("{0}", a - b);
return;
}
if (input.Contains("*"))
{
int a = Convert.ToInt32(input.Substring(0, input.IndexOf("*")));
int b = Convert.ToInt32(input.Substring(input.IndexOf("*") + 1));
Console.WriteLine("{0}", a * b);
return;
}
if (input.Contains("/"))
{
int a = Convert.ToInt32(input.Substring(0, input.IndexOf("/")));
int b = Convert.ToInt32(input.Substring(input.IndexOf("/")+1));
Console.WriteLine("{0}", a / b);
return;
}
if (input.Contains("%"))
{
int a = Convert.ToInt32(input.Substring(0, input.IndexOf("%")));
int b = Convert.ToInt32(input.Substring(input.IndexOf("%") + 1));
if (b == 0) { Console.WriteLine(0); return; }
Console.WriteLine(a % b);
return;
}
}
}
}