solved 1A task