Given a string of opening and closing brackets, you are asked to find the matching opening bracket for each closing bracket. Itβs guaranteed that the given sequence of brackets is valid.
Input
The input contains a single line s (1 β€ |s| β€ ).
Output
For each closing bracket, the program should print the index of its corresponding opening one. The indices should be separated by a space.