dumb solver