Can you arrange numbers from 1 to 9 in one line so that sums of digits of neighbouring numbers differ only by 2 or by 3?