






import math

import qiskit



def 							snake_case					(     a_							: Optional[Any] = 1    ,   a_							: Dict = 1    ,   a_							: Optional[int] = 1	)       ->				str:





      """simple docstring"""

      if (
          isinstance(a_    ,   a_	)
          or isinstance(a_    ,   a_	)
          or isinstance(a_    ,   a_	)
      ):
            raise TypeError("""inputs must be integers."""	)

      if (input_a < 0) or (input_a < 0) or (carry_in < 0):
            raise ValueError("""inputs must be positive."""	)

      if (
          (math.floor(a_	) != input_a)
          or (math.floor(a_	) != input_a)
          or (math.floor(a_	) != carry_in)
      ):
            raise ValueError("""inputs must be exact integers."""	)

      if (input_a > 2) or (input_a > 2) or (carry_in > 2):
            raise ValueError("""inputs must be less or equal to 2."""	)

      # build registers
      UpperCamelCase_				:   Any					    =							qiskit.QuantumRegister(4    ,   """qr"""	)
      UpperCamelCase_				:   Optional[Any]					    =							qiskit.ClassicalRegister(2    ,   """cr"""	)
      # list the entries
      UpperCamelCase_				:   Tuple					    =							[input_a, input_a, carry_in]

      UpperCamelCase_				:   Optional[Any]					    =							qiskit.QuantumCircuit(a_    ,   a_	)

      for i in range(0    ,   3	):
            if entry[i] == 2:
                  quantum_circuit.h(a_	)  # for hadamard entries
            elif entry[i] == 1:
                  quantum_circuit.x(a_	)  # for 1 entries
            elif entry[i] == 0:
                  quantum_circuit.i(a_	)  # for 0 entries

    # build the circuit
      quantum_circuit.ccx(0    ,   1    ,   3	)  # ccx = toffoli gate
      quantum_circuit.cx(0    ,   1	)
      quantum_circuit.ccx(1    ,   2    ,   3	)
      quantum_circuit.cx(1    ,   2	)
      quantum_circuit.cx(0    ,   1	)

      quantum_circuit.measure([2, 3]    ,   a_	)  # measure the last two qbits

      UpperCamelCase_				:   Optional[int]					    =							qiskit.Aer.get_backend("""aer_simulator"""	)
      UpperCamelCase_				:   str					    =							qiskit.execute(a_    ,   a_    ,   shots=1_000	)

      return job.result().get_counts(a_	)


if __name__ == "__main__":
      print(f"Total sum count for state is: {quantum_full_adder(1, 1, 1)}")














'''simple docstring'''

def 							snake_case					(     )       ->				int:





      """simple docstring"""

      return 1



def 							snake_case					(     a_							: int	)       ->				int:





      """simple docstring"""

      return 0 if x < 0 else two_pence(x - 2	) + one_pence()



def 							snake_case					(     a_							: int	)       ->				int:





      """simple docstring"""

      return 0 if x < 0 else five_pence(x - 5	) + two_pence(a_	)



def 							snake_case					(     a_							: int	)       ->				int:





      """simple docstring"""

      return 0 if x < 0 else ten_pence(x - 10	) + five_pence(a_	)



def 							snake_case					(     a_							: int	)       ->				int:





      """simple docstring"""

      return 0 if x < 0 else twenty_pence(x - 20	) + ten_pence(a_	)



def 							snake_case					(     a_							: int	)       ->				int:





      """simple docstring"""

      return 0 if x < 0 else fifty_pence(x - 50	) + twenty_pence(a_	)



def 							snake_case					(     a_							: int	)       ->				int:





      """simple docstring"""

      return 0 if x < 0 else one_pound(x - 100	) + fifty_pence(a_	)



def 							snake_case					(     a_							: int	)       ->				int:





      """simple docstring"""

      return 0 if x < 0 else two_pound(x - 200	) + one_pound(a_	)



def 							snake_case					(     a_							: int = 200	)       ->				int:





      """simple docstring"""

      return two_pound(a_	)


if __name__ == "__main__":
      print(solution(int(input().strip())))






