print rest, max cost