/*--------------------------------------------------------------*/
/* ACM ICPC 2009-2010, NEERC                                    */
/* Northern Subregional Contest                                 */
/* St Petersburg, October 17, 2009                              */
/*--------------------------------------------------------------*/
/* Problem A. Auxiliary Question of the Universe                */
/*                                                              */
/* Original idea         Dmitry Shtukenberg, Mikhail Dvorkin    */
/* Problem statement     Dmitry Shtukenberg                     */
/* Testset               Georgiy Korneev                        */
/*--------------------------------------------------------------*/
/* Solution                                                     */
/*                                                              */
/* Author                Georgiy Korneev                        */
/*--------------------------------------------------------------*/
 
import java.util.*;
import java.io.*;

public class auxiliary_gk implements Runnable {
    static Scanner in;
    static PrintWriter out;

    public void run() {
        String line = in.nextLine();
        for (char ch : line.toCharArray()) {
            if (Character.isDigit(ch)) {
                out.print(ch + "+");
            } else {
                out.print("(1)+");
            }
        }
        out.println("1");
    }

    public static void main(String[] args) throws Exception {        
        in = new Scanner(new File("auxiliary.in"));
        out = new PrintWriter("auxiliary.out");

        new auxiliary_gk().run();

        in.close();
        out.close();
    }
}
