package main import . "fmt" import . "math/big" func main() { a,b := new(Int),new(Int) Scan(a,b) Println(new(Int).Mod(a,b)) }