# Numbers in a Number

**Logic**Level pending

\(M\) is a 7-digit number such that

(i) the first digit of \(M\) is the number of 0's in \(M\)

(ii) the second digit of \(M\) is the number of 1's in \(M\)

(iii) the third digit of \(M\) is the number of 2's in \(M\)

and so on until the last digit of \(M\) is the number of 6's in \(M\)

Find \(M\).