def main():

    data = []

    n = input().split()

    a = int(n[0])

    b = int(n[1])



    divans = a / b

    intdiv = int(divans)

    divr = a % b



    print(("{0} {1} %.5f".format(intdiv,divr) % divans))



if __name__ == '__main__':

    main()
def main():

    data = []

    n = input().split()

    a = int(n[0])

    b = int(n[1])



    divans = a / b

    intdiv = int(divans)

    divr = a % b



    print(("{0} {1} {2:.5f}".format(intdiv, divr, divans)))

    

if __name__ == "__main__":

    main()
def main():
    data = []
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    divans = a / b
    intdiv = int(divans)
    divr = a % b
    print(("{0} {1} %.5f".format(intdiv, divr) % divans))


if __name__ == "__main__":
    main()

def main():
    data = []
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    divans = a / b
    intdiv = int(divans)
    divr = a % b
    print(("{0} {1} {2:.5f}".format(intdiv, divr, divans)))


if __name__ == "__main__":
    main()

-    print(("{0} {1} %.5f".format(intdiv, divr) % divans)) +    print(("{0} {1} {2:.5f}".format(intdiv, divr, divans)))