584 Solution