def format_orbital_configuration(orbital_configuration: list) -> str:
    """Prettily format an orbital configuration.

    :param orbital_configuration: the list of the number of s, p, d and f orbitals.
    :return: a nice string representation.
    """
    orbital_names = ['s', 'p', 'd', 'f']

    orbital_configuration_string = ''
    for orbital, name in zip(orbital_configuration, orbital_names):
        if orbital > 0:
            orbital_configuration_string += f'{name}{orbital}'

    return orbital_configuration_string