package com.njupt.acm;import java.math.BigInteger;import java.util.Scanner;public class UVA_10494 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(scanner.hasNext()){ BigInteger a = scanner.nextBigInteger(); String str = scanner.next(); BigInteger b = scanner.nextBigInteger(); if(str.equals("/")){ System.out.println(a.divide(b)); }else if(str.equals("%")){ System.out.println(a.mod(b)); } } }}