def computateDiv(a, b):
    c = divmod(a, b)
    return c[0]


def computateMod(a, b):
    g = divmod(a, b)
    return g[1]


a = int(input())
b = int(input())
print(computateDiv(a, b))
print(computateMod(a, b))
print(divmod(a, b))

294bca5b78fca761fe269129687baa7c39788703
def computateDiv(a, b):
    c = divmod(a, b)
    return c[0]


<mask token>

def computateDiv(a, b):
    c = divmod(a, b)
    return c[0]


def computateMod(a, b):
    g = divmod(a, b)
    return g[1]


<mask token>

def computateDiv(a, b):
    c = divmod(a, b)
    return c[0]


def computateMod(a, b):
    g = divmod(a, b)
    return g[1]


<mask token>
print(computateDiv(a, b))
print(computateMod(a, b))
print(divmod(a, b))

def computateDiv(a, b):
    c = divmod(a, b)
    return c[0]


def computateMod(a, b):
    g = divmod(a, b)
    return g[1]


a = int(input())
b = int(input())
print(computateDiv(a, b))
print(computateMod(a, b))
print(divmod(a, b))
