Length or distance

Input:

Output: