Groups magic

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

Input

(a) (abc) (abcd) (123456)

Output

___ _____ ______ ________