import java.io.*;
import java.util.*;
import java.math.*;
import java.text.*;
public class Main {
 
	public static void main(String args[]) 
	{
		Scanner in = new Scanner(System.in);
        BigInteger a,b;char c;
        while(in.hasNext())
        {
		       a = in.nextBigInteger();
               c=in.next().charAt(0);
		       b = in.nextBigInteger();
		       if(c=='/')
                     System.out.println(a.divide(b));
               else
                     System.out.println(a.mod(b));
                       
         }
    }
}