#Retina, 62 43 bytes
.+
11:$&;111:$&;1111:$&
\b(1+):(\1*)1*
$1$2
Input in unary, output in unary separated by semi-colon (;
).
##Previous 62-byte version:
.+
$&11;$&111;$&1111
((11)+)1*;((111)+)1*;((1111)+)1*
$1;$3;$5
Input in unary, output in unary separated by semi-colon (;
).