Sort:  

Nope. Thunk is not a genius.

1 2 3 8
1 3 8
3 8
1 4 1 4
a=1 ; b=2; c=3; d=8

Oh this is a Yes brainer