You went shopping to buy cakes and donuts with X yen (the currency of Japan).
First, you bought one cake for A yen at a cake shop.
Then, you bought as many donuts as possible for B yen each, at a donut shop.
How much do you have left after shopping?

-----Constraints-----
 - 1 \leq A, B \leq 1 000
 - A + B \leq X \leq 10 000
 - X, A and B are integers.

-----Input-----
Input is given from Standard Input in the following format:
X
A
B

-----Output-----
Print the amount you have left after shopping.

-----Sample Input-----
1234
150
100

-----Sample Output-----
84

You have 1234 - 150 = 1084 yen left after buying a cake.
With this amount, you can buy 10 donuts, after which you have 84 yen left.
[{"code": "print((int(input()) - int(input())) % int(input()))", "passed": true, "time": 0.15, "memory": 14308.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nprint(X - A - B * ((X - A) // B))", "passed": true, "time": 0.31, "memory": 14292.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\n\nprint((x-a)%b)", "passed": true, "time": 0.31, "memory": 14100.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nprint((x-a)%b)", "passed": true, "time": 1.86, "memory": 14244.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nprint((x-a)%b)", "passed": true, "time": 0.15, "memory": 14340.0, "status": "done"}, {"code": "# A - Buying Sweets\n\n# X\u5186\u3067\u3001A\u5186\u306e\u30b1\u30fc\u30ad1\u500b\u3068\u3001B\u5186\u306e\u30c9\u30fc\u30ca\u30c4\u3092\u8cb7\u3048\u308b\u3060\u3051\u8cb7\u3063\u305f\u5834\u5408\u3001\u6b8b\u308a\u306f\u4f55\u5186\u304b\n\n\nX = int(input())\nA = int(input())\nB = int(input())\n\nprint(((X - A) % B))\n", "passed": true, "time": 0.66, "memory": 14316.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x-a)%b)", "passed": true, "time": 0.68, "memory": 14292.0, "status": "done"}, {"code": "X=int(input())\nA=int(input())\nB=int(input())\nkeki=X-A\ndonatu=keki%B\nprint(donatu)", "passed": true, "time": 0.2, "memory": 14304.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x-a)%b)", "passed": true, "time": 0.23, "memory": 14100.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x - a) % b)", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nprint((X-A)%B)", "passed": true, "time": 0.2, "memory": 14240.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x-a)%b)", "passed": true, "time": 0.21, "memory": 14096.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nprint((X - A) % B)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nprint((X-A)%B)", "passed": true, "time": 0.21, "memory": 14072.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nprint((X-A)%B)", "passed": true, "time": 0.21, "memory": 14088.0, "status": "done"}, {"code": "# \u3042\u306a\u305f\u306f\u3001X \u5186\u3092\u6301\u3063\u3066\u30b1\u30fc\u30ad\u3068\u30c9\u30fc\u30ca\u30c4\u3092\u8cb7\u3044\u306b\u51fa\u304b\u3051\u307e\u3057\u305f\u3002\n# \u3042\u306a\u305f\u306f\u307e\u305a\u30b1\u30fc\u30ad\u5c4b\u3067 1\u500b A\u5186\u306e\u30b1\u30fc\u30ad\u3092 1\u500b\u8cb7\u3044\u307e\u3057\u305f\u3002\n# \u6b21\u306b\u3001\u30c9\u30fc\u30ca\u30c4\u5c4b\u3067 1\u500b B \u5186\u306e\u30c9\u30fc\u30ca\u30c4\u3092\u3067\u304d\u308b\u3060\u3051\u305f\u304f\u3055\u3093\u8cb7\u3044\u307e\u3057\u305f\u3002\n#\n# \u3053\u308c\u3089\u306e\u8cb7\u3044\u7269\u306e\u3042\u3068\u624b\u5143\u306b\u6b8b\u3063\u3066\u3044\u308b\u91d1\u984d\u306f\u4f55\u5186\u3067\u3059\u304b\u3002\n\n# \u5236\u7d04\n# 1 \u2266 A, B \u2266 1,000\n# A + B \u2266 X \u2266 10,000\n# X, A, B \u306f\u6574\u6570\u3067\u3042\u308b\n\n# \u6a19\u6e96\u5165\u529b\u304b\u3089\u3001X, A, B \u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\nx = int(input())\na = int(input())\nb = int(input())\n\n# \u6b8b\u91d1\u3092\u8a08\u7b97\u3057\u3066\u51fa\u529b\u3059\u308b\nresult = 0\n\nresult = (x - a) % b\nprint(result)\n", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nx -= a\n\nwhile(1):\n    x -= b\n    if x - b < 0:\n      print(x)\n      break\n\n", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nx -= a\n\nwhile x >= b:\n    x -= b\n\nprint(x)\n", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nprint((x - a) % b)", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nprint(((x-a)%b))\n", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nn = x - a\n\nprint(n % ((n // b) * b))", "passed": true, "time": 0.23, "memory": 14272.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nans = x-a - (x-a)//b*b\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nprint((x-a-((x-a)//b)*b))\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "X, A, B = [int(input()) for _ in range(3)]\n \nprint((X-A) % B)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "x=int(input())\nprint((x-int(input()))%int(input()))", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "a=[]\nfor i in range(3):\n  a.append(int(input()))\n  \nprint((a[0]-a[1])%a[2])", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nprint((X-A)%B)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "# 087_a\nX=int(input())\nA=int(input())\nB=int(input())\n\nif (1<= (A+B) and X<= 10000) and (1<=A and A<= 1000) and (1<=B and B<= 1000):\n    a=X-A\n    b=int(a/B)\n    print((a-(b*B)))\n", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "X=int(input())\nA=int(input())\nB=int(input())\nprint(((X-A)%B))\n", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nc = int(input())\nprint(((a - b) % c))\n", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "x,a,b = [int(input()) for i in range(3)]\nx -= a\nprint(x-b*(x // b))", "passed": true, "time": 0.15, "memory": 14280.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nX = X - A\nprint(X - (X // B)*B)", "passed": true, "time": 0.24, "memory": 14216.0, "status": "done"}, {"code": "a = [int(input()) for i in range(3)]\nb = a[0]-a[1]\nsub = b % a[2]\n\nprint(sub)", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nx -= a\nprint(x%b)", "passed": true, "time": 0.18, "memory": 14260.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nprint((X - A) % B)", "passed": true, "time": 0.28, "memory": 14196.0, "status": "done"}, {"code": "import sys\n\ninput = sys.stdin.readline\nX = int(input())\nA = int(input())\nB = int(input())\n\nX -= A\nprint(X - X // B * B)", "passed": true, "time": 0.23, "memory": 14276.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nprint((x-a) % b)", "passed": true, "time": 0.18, "memory": 14084.0, "status": "done"}, {"code": "# A - Buying Sweets\n# https://atcoder.jp/contests/abc087/tasks/abc087_a\n\nX = int(input())\nA = int(input())\nB = int(input())\n\nprint(((X - A) % B))\n", "passed": true, "time": 0.19, "memory": 14108.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nx -= a\nx %= b\nprint(x)", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "x,a,b = [int(input()) for i in range(3)]\nprint((x-a)%b)", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nprint((X -A) % B)", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\na = (X-A)%B\n\nprint(a)", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\nx = int(input())\na = int(input())\nb = int(input())\n\n\nprint(((x-a) % b))\n", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nanswer = (x - a) % b\nprint(answer)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "x,a,b = [int(input()) for i in range(3)]\nprint(x-a-(x-a)//b*b)", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "i = lambda: int(input())\nprint(((i() - i()) % i()))\n", "passed": true, "time": 0.15, "memory": 14236.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nprint(((X - A) % B))\n", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "#\n# abc087 a\n#\nimport sys\nfrom io import StringIO\nimport unittest\n\n\nclass TestClass(unittest.TestCase):\n    def assertIO(self, input, output):\n        stdout, stdin = sys.stdout, sys.stdin\n        sys.stdout, sys.stdin = StringIO(), StringIO(input)\n        resolve()\n        sys.stdout.seek(0)\n        out = sys.stdout.read()[:-1]\n        sys.stdout, sys.stdin = stdout, stdin\n        self.assertEqual(out, output)\n\n    def test_\u5165\u529b\u4f8b_1(self):\n        input = \"\"\"1234\n150\n100\"\"\"\n        output = \"\"\"84\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_2(self):\n        input = \"\"\"1000\n108\n108\"\"\"\n        output = \"\"\"28\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_3(self):\n        input = \"\"\"579\n123\n456\"\"\"\n        output = \"\"\"0\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_4(self):\n        input = \"\"\"7477\n549\n593\"\"\"\n        output = \"\"\"405\"\"\"\n        self.assertIO(input, output)\n\n\ndef resolve():\n    X = int(input())\n    A = int(input())\n    B = int(input())\n\n    print(((X-A) % B))\n\n\ndef __starting_point():\n    # unittest.main()\n    resolve()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14392.0, "status": "done"}, {"code": "x = int(input())\nA = int(input())\nB = int(input())\n\nans = (x - A) % B\nprint(ans)", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nprint(X - A - B * ((X - A) // B))", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\n\nx-=a\nnum=x//b\nx-=num*b\nprint(x)", "passed": true, "time": 0.14, "memory": 14360.0, "status": "done"}, {"code": "a=int(input())\nb=int(input())\nc=int(input())\nprint((a-b)%c)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x-a)%b)", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\n# \u3067\u304d\u308b\u3060\u3051\u8cb7\u3048\u308b\u500b\u6570\nn = (X - A) // B\n\nprint((X - A - B * n))\n", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x-a)%b)", "passed": true, "time": 0.15, "memory": 14284.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nx-=a\nprint(x%b)", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nx -= a\nwhile x >= b:\n  x -= b\n  \nprint(x)", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nprint(x-a-((x-a)//b)*b)", "passed": true, "time": 0.15, "memory": 14052.0, "status": "done"}, {"code": "\nX=int(input())\nA=int(input())\nB=int(input())\nX -= A\nY = X % B\nprint(Y)", "passed": true, "time": 0.19, "memory": 14304.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nans = X - A\nans %= B\nprint(ans)", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "x,a,b=[int(input()) for i in range(3)]\nprint(((x-a)%b))\n\n", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nprint((x-a)%b)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "X=int(input())\nA=int(input())\nB=int(input())\nkeiki=X-A\ndonatu=keiki%B\nprint(donatu)", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x-a)%b)", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nx-=a\nwhile x>=0:\n  x-=b\nprint(x+b)", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nans = (x - a) % b\n\nprint(ans)", "passed": true, "time": 0.19, "memory": 14224.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x-a)%b)", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x - a) % b)", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nprint((X - A) % B)", "passed": true, "time": 0.15, "memory": 14232.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\n# \u7b54\u3048\u306f(X-A)\u3092B\u3067\u5272\u3063\u305f\u4f59\u308a\nX = X - A\nprint(X % B)", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "def main():\n    x, a, b = (int(input()) for _ in range(3))\n    t = x - a\n    print(t - b * (t // b))\n\n\nmain()", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "x,a,b=int(input()),int(input()),int(input())\nprint(x-a-(x-a)//b*b)", "passed": true, "time": 0.19, "memory": 14208.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nprint((X - A) % B)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "# \u5165\u529b\nX = int(input())\nA = int(input())\nB = int(input())\n\n# A\u5186\u306e\u30b1\u30fc\u30ad\u30921\u500b\u8cb7\u3046\nbalance = X - A\n\n# \u6b8b\u91d1\u3067\u8cb7\u3048\u308b\u30b1\u30fc\u30adB\u306e\u6570\u3092\u6c42\u3081\u308b\nquantity = balance // B\n\n# B\u306e\u30b1\u30fc\u30ad\u3092\u5909\u3048\u308b\u3060\u3051\u8cb7\u3046\nbalance -= B * quantity\n\n# \u6b8b\u91d1\u3092\u51fa\u529b\u3059\u308b\nprint(balance)", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nX -= A\nn = int(X / B)\nprint(X - B * n)", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nprint((x - a) % b)", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "import sys\n\nsys.setrecursionlimit(10 ** 7)\nf_inf = float('inf')\nmod = 10 ** 9 + 7\n\n\ndef resolve():\n    x = int(input())\n    a = int(input())\n    b = int(input())\n\n    x -= a\n    res = x % b\n    print(res)\n\n\ndef __starting_point():\n    resolve()\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 14184.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x - a) % b)", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "possesion=int(input())\ncake=int(input())\ndonut=int(input())\n\nremain_1=possesion-cake\nremain_2=remain_1-(remain_1//donut)*donut\n\nprint(remain_2)", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nx-=a\nx%=b\nprint(x)", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint(((x - a) % b))\n", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "x,a,b = [int(input()) for i in range(3)]\nprint(((x - a) % b))\n\n\n", "passed": true, "time": 0.43, "memory": 14252.0, "status": "done"}, {"code": "x=int(input())\nx-=int(input())\nprint(x%int(input()))", "passed": true, "time": 0.28, "memory": 14112.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nprint((x-a)%b)", "passed": true, "time": 0.25, "memory": 14092.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nanswer = ( X - A ) % B\nprint(answer)\n", "passed": true, "time": 0.26, "memory": 14112.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint((x-a)%b)", "passed": true, "time": 0.23, "memory": 14200.0, "status": "done"}, {"code": "x=int(input())\na=int(input())\nb=int(input())\nprint((x-a)%b)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\ndef main():\n    x = int(input())\n    a, b = (int(input()) for i in range(2))\n    print(((x - a) % b))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "a = int(input())\nb = int(input())\nc = int(input())\n\nprint((a - b) % c)", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nb = (x - a) // b * b\nprint(x - (a + b))", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "\n# \u3042\u306a\u305f\u306f\u3001X\u5186\u3092\u6301\u3063\u3066\u30b1\u30fc\u30ad\u3068\u30c9\u30fc\u30ca\u30c4\u3092\u8cb7\u3044\u306b\u51fa\u304b\u3051\u307e\u3057\u305f\u3002\n# \u3042\u306a\u305f\u306f\u307e\u305a\u30b1\u30fc\u30ad\u5c4b\u30671\u500bA\u5186\u306e\u30b1\u30fc\u30ad\u30921\u500b\u8cb7\u3044\u307e\u3057\u305f\u3002 \u6b21\u306b\u3001\u30c9\u30fc\u30ca\u30c4\u5c4b\u30671\u500bB\u5186\u306e\u30c9\u30fc\u30ca\u30c4\u3092\u3067\u304d\u308b\u3060\u3051\u305f\u304f\u3055\u3093\u8cb7\u3044\u307e\u3057\u305f\u3002\n# \u3053\u308c\u3089\u306e\u8cb7\u3044\u7269\u306e\u3042\u3068\u624b\u5143\u306b\u6b8b\u3063\u3066\u3044\u308b\u91d1\u984d\u306f\u4f55\u5186\u3067\u3059\u304b\u3002\n\n\nX = int(input()) \nA = int(input())\nB = int(input())\n\nY = X - A # A\u30921\u500b\u8cb7\u3063\u3066\u3001\u6b8b\u3063\u305f\u304a\u91d1\u3092Y\u5186\u3068\u3059\u308b\u3002\n\nprint(Y % B)  ", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "X,A,B=[int(input()) for i in range(3)]\nprint((X-A)%B)", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "X, A, B = int(input()), int(input()), int(input())\nans = (X-A)%B\nprint(ans)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\nprint(x - a - ((x-a)//b)*b)", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "x = int(input())\na = int(input())\nb = int(input())\n\nprint((x-a)%b)", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\n\nprint((X-A)%B)", "passed": true, "time": 0.14, "memory": 14136.0, "status": "done"}, {"code": "X = int(input())\nA = int(input())\nB = int(input())\nprint(((X-A) % B))\n", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}]