def set_out_names(count_p2sh, non_std_only):
    """
    Set the name of the input / output files from the experiment depending on the given flags.
    :param count_p2sh: Whether P2SH should be taken into account.
    :type count_p2sh: bool
    :param non_std_only: Whether the experiment will be run only considering non standard outputs.
    :type non_std_only: bool
    :return: Four string representing the names of the utxo, parsed_txs, parsed_utxos and dust file names.
    :rtype: str, str, str, str
    """

    f_utxos = "/decoded_utxos.json"
    f_parsed_txs = "/parsed_txs.json"
    # In case of the parsed files we consider the parameters
    f_parsed_utxos = "/parsed_utxos"
    f_dust = "/dust"

    if non_std_only:
        f_parsed_utxos += "_nstd"
        f_dust += "_nstd"

    if count_p2sh:
        f_parsed_utxos += "_wp2sh"
        f_dust += "_wp2sh"

    f_parsed_utxos += ".json"
    f_dust += ".json"

    return f_utxos, f_parsed_txs, f_parsed_utxos, f_dust