Task

Write a program to perform a conversion of the old Russian measures of length to the metric system   (and vice versa).



It is an example of a linear transformation of several variables.



The program should accept a single value in a selected unit of measurement, and convert and return it to the other units:

vershoks, arshins, sazhens, versts, meters, centimeters and kilometers.



Also see

   Old Russian measure of length


П7	1	0	0	*	П8	1	ВП	5	/
П9	ИП7	1	0	6	7	/	П0	5	0
0	*	ПC	3	*	ПA	1	6	*	ПB
С/П	ПB	1	6	/	ПA	3	/	ПC	5
0	0	/	П0	1	0	6	7	/	БП
00