f=:3 :0 'a b c'=.y if.a>b do.if.b>c do.if.5>10|b-a do.5+c-5|c-b else.b end.else.if.c>a do.if.5