/**
* Angewandte Mathematik, SS11
* Problem: 10494 If We Were a Child Again
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&page=show_problem&problem=1435
* @author Brielbeck, Daniel
* @author Weber, Georg
* @version 1.0, 04/12/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.168
*/
import java.util.*;
import java.math.*;

class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
while (s.hasNextLine()) {
String input = s.nextLine();
if (input.length() == 0) continue;
Scanner sline = new Scanner(input);

BigInteger x1 = new BigInteger(sline.next());
String x = sline.next();
BigInteger x2 = new BigInteger(sline.next());

if (x.equals("%")) x1 = x1.mod(x2);
else x1 = x1.divide(x2);

System.out.println(x1);
}
}
}