

"""simple docstring"""


__A						   =			{
    "joule": 1.0,
    "kilojoule": 1000,
    "megajoule": 1000000,
    "gigajoule": 1000000000,
    "wattsecond": 1.0,
    "watthour": 3600,
    "kilowatthour": 3600000,
    "newtonmeter": 1.0,
    "calorie_nutr": 4_186.8,
    "kilocalorie_nutr": 4_186_800.00,
    "electronvolt": 1.602_176_634E-19,
    "britishthermalunit_it": 1_055.05_585,
    "footpound": 1.355_818,
}






def     a__    (    __SCREAMING_SNAKE_CASE					, __SCREAMING_SNAKE_CASE					, __SCREAMING_SNAKE_CASE )	->	float:
		if to_type not in ENERGY_CONVERSION or from_type not in ENERGY_CONVERSION:
				__lowerCAmelCase:       Dict          =			(
				    F"Incorrect \'from_type\' or \'to_type\' value: {from_type!r}, {to_type!r}\n"
				    F"Valid values are: {', '.join(SCREAMING_SNAKE_CASE_ )}"
				)
				raise ValueError(SCREAMING_SNAKE_CASE_ )
		return value * ENERGY_CONVERSION[from_type] / ENERGY_CONVERSION[to_type]


if __name__ == "__main__":
			import doctest

			doctest.testmod()






"""simple docstring"""




def     lowercase			(SCREAMING_SNAKE_CASE_		:				int = 10_00  )   ->						int:
						SCREAMING_SNAKE_CASE													=					2**power
						SCREAMING_SNAKE_CASE													=					0
						while n:
												SCREAMING_SNAKE_CASE							,				SCREAMING_SNAKE_CASE													=					r + n % 10, n // 10
						return r


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


