
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Let the function $f(x) = |x-4| + |x-1|$.

(1) Solve the inequality: $f(x) \leq 5$;

(2) If the function $g(x) = \frac{2017x-2016}{f(x)+2m}$ has the domain of $\mathbb{R}$, find the range of the real number $m$.

Present the answer in LaTex format: \boxed{Your answer}
user