from typing import List


def Q_state(state: List[int]) -> str:
    """Makes state list in string format

    Args:
        state (List[int]): states list

    Returns:
        str: string formatted state
    """
    return ('-'.join(str(e) for e in state)).replace('nan', 'x')