Problem

Source: 2016 All-Russian Olympiad,Problem 9.5

Tags: number theory, Sum



Using each of the digits $1,2,3,\ldots ,8,9$ exactly once,we form nine,not necassarily distinct,nine-digit numbers.Their sum ends in $n$ zeroes,where $n$ is a non-negative integer.Determine the maximum possible value of $n$.