import java.util.Scanner; import java.util.*; /** 四则运算的解法 */ public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while (in.hasNextLine()) { String str = in.nextLine(); str.replace("{", "("); str....