public boolean inputString() {
Scanner scanner = new Scanner(System.in);
String s = scanner.nextLine();
List<String> list = new ArrayList<>();
int pos1=s.indexOf('+');
int pos2=s.indexOf('-');
int pos3=s.indexOf('*');
if(pos1>0)
{
BigInteger a = new BigInteger(s.substring(0, pos1));
BigInteger b = new BigInteger(s.substring(pos1+1,s.length()));
System.out.println(a.add(b));
}
if(pos2>0)
{
BigInteger a = new BigInteger(s.substring(0, pos2));
BigInteger b = new BigInteger(s.substring(pos2+1,s.length()));
System.out.println(a.subtract(b));
}
if(pos3>0)
{
BigInteger a = new BigInteger(s.substring(0, pos3));
BigInteger b = new BigInteger(s.substring(pos3+1,s.length()));
System.out.println(a.multiply(b));
}
return true;
}
public static void main(String[] args) {
Main main = new Main();
while(true)
{
main.inputString();
}
}
}