URAL 1146 Maximum Sum