The problem "convertor" was used for the selection of the students who participated in the ROSEdu Community and Development Lab, 2015 edition.
Special thanks to Ada for helping me with her C++ implementation and with deciding on the final form of the problem statement.
You can send your solutions at the Infoarena judge.