N is a positive integer entirely formed by the digits 0,1,2,3,5, and 7 such that N is evenly divisible by 297. (Each of these six digits must occur at least once in N. None of the remaining four digits can occur in N.)

Determine the minimum value of N.