This is my solutions to lab works from the course http://judge.mipt.ru/mipt_cs_on_python3/labs/lab1.html#id39 Feel free to comment or discuss solutions :)