So,
This is a simple addition problem.
1000 + 40 + 1000 + 30 + 1000 + 20 + 1000 + 10
1040 + 1000 + 30 + 1000 + 20 + 1000 + 10
2040 + 30 + 1000 + 20 + 1000 + 10
2070 + 1000 + 20 + 1000 + 10
3070 + 20 + 1000 + 10
3090 + 1000 + 10
4090 + 10
4100
The sum is 4100.
What the point of asking this is, remains a mystery (Revelation 17:5).