Realization of the same task with several different languages (C python lisp haskell)