def get_neighbours4(x, y, z, w):
    """Get neighbours for four dimension point."""
    neighbours = []
    for nx in (x - 1, x, x + 1):
        for ny in (y - 1, y, y + 1):
            for nz in (z - 1, z, z + 1):
                for nw in (w - 1, w, w + 1):
                    if (any(num < 0 for num in (nx, ny, nz, nw))
                            or (x, y, z, w) == (nx, ny, nz, nw)):
                        continue
                    neighbours.append((nx, ny, nz, nw))
    return neighbours