#261. A%B Problem

A%B Problem

No testdata at current.

Background

建议尝试过"A+B Problem"的入门鼠来做一做这道题,感受一下long longlong \ long装不下的数。

Description

  • 给你两个数,NNMM,求
  • N mod MN \ mod \ M
  • 其中,mod就等于'%',表示求NN除以MM的余数。

Format

Input

NNMM

Output

N mod MN \ mod \ M的值

Samples

78
7
1
1654674391572457165237496523
6238746128374681723462128
1406667553166508520032603

Limitation

78%7 = 1,1NM103001≤N,M≤10^{300}

1s, 1024KiB for each test case.