Normal sudoku rules apply. If the digits at each end of a line are X and Y, then the first X digits on the line starting from X must sum to the same total as the first Y digits on the line starting from Y. (X and Y need not necessarily be different numbers; X and Y may not exceed the number of cells on the line).