



import doctest
from collections import deque

import numpy as np







class     __lowerCAmelCase					:



			def __init__(		self     :						Tuple)     ->					None:



						"""simple docstring"""






						_UpperCAmelCase	 =     [2, 1, 2, -1]
						_UpperCAmelCase	 =     [1, 2, 3, 4]



			def 					_lowerCamelCase (		self     :						str)     ->					list[float]:



						"""simple docstring"""






						_UpperCAmelCase	 =     len(self.first_signal)
						_UpperCAmelCase	 =     len(self.second_signal)

						_UpperCAmelCase	 =     max(A				,	A)

						# create a zero matrix of max_length x max_length
						_UpperCAmelCase	 =     [[0] * max_length for i in range(A)]

						# fills the smaller signal with zeros to make both signals of same length
						if length_first_signal < length_second_signal:
									self.first_signal += [0] * (max_length - length_first_signal)
						elif length_first_signal > length_second_signal:
									self.second_signal += [0] * (max_length - length_second_signal)
						for i in range(A):
									_UpperCAmelCase	 =     deque(self.second_signal)
									rotated_signal.rotate(A)
									for j, item in enumerate(A):
												matrix[i][j] += item

        # multiply the matrix with the first signal
						_UpperCAmelCase	 =     np.matmul(np.transpose(A)				,	np.transpose(self.first_signal))

						# rounding-off to two decimal places
						return [round(A				,	2) for i in final_signal]


if __name__ == "__main__":
							doctest.testmod()





def 							A			(  _UpperCAmelCase       :     int							,     _UpperCAmelCase       :     int					)       ->				int:







			'''simple docstring'''
			while second != 0:
						_UpperCAmelCase	 =     first & second
						first ^= second
						_UpperCAmelCase	 =     c << 1
			return first


if __name__ == "__main__":
							import doctest

							doctest.testmod()

							UpperCAmelCase__     = int(input("Enter the first number: ").strip())
							UpperCAmelCase__     = int(input("Enter the second number: ").strip())
							print(f"""{add(first, second) = }""")
