Perpendicular Segments

Problem: In the set of perpendicular segments (please see attachment), AB = 10 and every other segment is 1 unit shorter than the previous one (so
BC = 9, CD = 8, DE = 7, etc). What is the (straight line) distance from A to K?