Adjacent additions

In a 7-digit numerical code, each group of four consecutive digits adds to 16, and each group of five consecutive digits adds to 19. What is the sum of all 7 digits?

Problem



In a 7-digit numerical code, each group of four adjacent digits adds to 16, and each group of five adjacent digits adds to 19.

What is the sum of all seven digits?