069 python solution