import itertools


def createListWord(n):
    """Creates the list of word with size n on the alphabet {1,2,3,4}."""
    temp = [''.join(x) for x in itertools.product('1234', repeat=n)]
    L = [int(y) for y in temp]
    return L