





import qiskit




def  __UpperCAmelCase(   lowercase_			,     lowercase_   ):
       _lowerCamelCase				:  Dict						=		qiskit.Aer.get_backend('''aer_simulator'''   )

       # Create a Quantum Circuit acting on the q register
       _lowerCamelCase				:  List[Any]						=		qiskit.QuantumCircuit(lowercase_			,     lowercase_   )

       # Apply X (NOT) Gate to Qubits 0 & 1
       circuit.x(0   )
       circuit.x(1   )

       # Map the quantum measurement to the classical bits
       circuit.measure([0, 1]			,     [0, 1]   )

       # Execute the circuit on the qasm simulator
       _lowerCamelCase				:  List[Any]						=		qiskit.execute(lowercase_			,     lowercase_			,     shots=10_00   )

       # Return the histogram data of the results of the experiment.
       return job.result().get_counts(lowercase_   )


if __name__ == "__main__":
       _lowerCamelCase      							=   single_qubit_measure(2, 2)
       print(F'''Total count for various states are: {counts}''')








import os




def  __UpperCAmelCase(   ):
       with open(os.path.dirname(lowercase_   ) + '''/p022_names.txt'''   ) as file:
              _lowerCamelCase				:  Optional[int]						=		str(file.readlines()[0]   )
              _lowerCamelCase				:  List[Any]						=		names.replace('''"'''			,     ''''''   ).split(''','''   )

       names.sort()

       _lowerCamelCase				:  Optional[int]						=		0
       _lowerCamelCase				:  Tuple						=		0

       for i, name in enumerate(lowercase_   ):
              for letter in name:
                     name_score += ord(lowercase_   ) - 64

              total_score += (i + 1) * name_score
              _lowerCamelCase				:  Optional[int]						=		0
       return total_score


if __name__ == "__main__":
       print(solution())

