4. The set $X$ of $N$ four-digit numbers formed from the digits $1,2,3,4,5,6,7,8$ satisfies the following condition:

for any two different digits from 1, 2, 3, 4, 5, 6, 7, 8 there exists a number in $X$ which contains both of them.

Determine the smallest possible value of $N$.