How did the barber with the race?

He knew a shortcut