
"""simple docstring"""

def 		UpperCAmelCase (		a_,						a_      ):





		'''simple docstring'''


		lowerCamelCase					:      Dict          =   ''
		for i in table:
				res += inp[i - 1]
		return res
def 		UpperCAmelCase (		a_      ):





		'''simple docstring'''


		return data[1:] + data[0]
def 		UpperCAmelCase (		a_,						a_      ):





		'''simple docstring'''


		lowerCamelCase					:      Optional[int]          =   ''
		for i in range(len(a_      )      ):
				if a[i] == b[i]:
						res += "0"
				else:
						res += "1"
		return res
def 		UpperCAmelCase (		a_,						a_      ):





		'''simple docstring'''


		lowerCamelCase					:      Union[str, Any]          =   int('0b' + data[0] + data[-1],						2      )
		lowerCamelCase					:      List[Any]          =   int('0b' + data[1:3],						2      )
		return bin(s[row][col]      )[2:]
def 		UpperCAmelCase (		a_,						a_,						a_,						a_,						a_      ):





		'''simple docstring'''


		lowerCamelCase					:      Dict          =   message[:4]
		lowerCamelCase					:      str          =   message[4:]
		lowerCamelCase					:      int          =   apply_table(a_,						a_      )
		lowerCamelCase					:      int          =   xor(a_,						a_      )
		lowerCamelCase					:      Optional[int]          =   apply_sbox(a_,						temp[:4]      )  # noqa: E741
		lowerCamelCase					:      List[str]          =   apply_sbox(a_,						temp[4:]      )
		lowerCamelCase					:      Optional[Any]          =   '0' * (2 - len(a_      )) + l  # noqa: E741
		lowerCamelCase					:      List[Any]          =   '0' * (2 - len(a_      )) + r
		lowerCamelCase					:      str          =   apply_table(l + r,						a_      )
		lowerCamelCase					:      Tuple          =   xor(a_,						a_      )
		return temp + right


if __name__ == "__main__":
					_A						=			input('Enter 10 bit key: ')
					_A						=			input('Enter 8 bit message: ')

					_A						=			[6, 3, 7, 4, 8, 5, 1_0, 9]
					_A						=			[3, 5, 2, 7, 4, 1_0, 1, 9, 8, 6]
					_A						=			[2, 4, 3, 1]
					_A						=			[2, 6, 3, 1, 4, 8, 5, 7]
					_A						=			[4, 1, 3, 5, 7, 2, 8, 6]
					_A						=			[4, 1, 2, 3, 2, 3, 4, 1]
					_A						=			[[1, 0, 3, 2], [3, 2, 1, 0], [0, 2, 1, 3], [3, 1, 3, 2]]
					_A						=			[[0, 1, 2, 3], [2, 0, 1, 3], [3, 0, 1, 0], [2, 1, 0, 3]]

					# key generation
					_A						=			apply_table(key, paa_table)
					_A						=			temp[:5]
					_A						=			temp[5:]
					_A						=			left_shift(left)
					_A						=			left_shift(right)
					_A						=			apply_table(left + right, pa_table)
					_A						=			left_shift(left)
					_A						=			left_shift(right)
					_A						=			left_shift(left)
					_A						=			left_shift(right)
					_A						=			apply_table(left + right, pa_table)

					# encryption
					_A						=			apply_table(message, IP)
					_A						=			function(expansion, sa, sa, keya, temp)
					_A						=			temp[4:] + temp[:4]
					_A						=			function(expansion, sa, sa, keya, temp)
					_A						=			apply_table(temp, IP_inv)
					print('Cipher text is:', CT)

					# decryption
					_A						=			apply_table(CT, IP)
					_A						=			function(expansion, sa, sa, keya, temp)
					_A						=			temp[4:] + temp[:4]
					_A						=			function(expansion, sa, sa, keya, temp)
					_A						=			apply_table(temp, IP_inv)
					print('Plain text after decypting is:', PT)








"""simple docstring"""

def 		UpperCAmelCase (		):





		'''simple docstring'''


		return 1
def 		UpperCAmelCase (		a_      ):





		'''simple docstring'''


		return 0 if x < 0 else two_pence(x - 2      ) + one_pence()
def 		UpperCAmelCase (		a_      ):





		'''simple docstring'''


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





		'''simple docstring'''


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





		'''simple docstring'''


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





		'''simple docstring'''


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





		'''simple docstring'''


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





		'''simple docstring'''


		return 0 if x < 0 else two_pound(x - 200      ) + one_pound(a_      )
def 		UpperCAmelCase (		a_ = 200      ):





		'''simple docstring'''


		return two_pound(a_      )


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






