1005

Solution for 1005 task
1820