#include#include #include #include using namespace std;char compare(char tp, char op){ if (((tp == '+' || tp == '-') && (op == '*' || op == '/')) || tp == '#') return '<'; return '>';}int main(){ stack num; stack oper; oper.push('#'); string s; cin >> s; for (int i = 0; i ') { num.push(oper.top()); oper.pop(); oper.push(s[i]); } } } while (oper.top() != '#') { num.push(oper.top()); oper.pop(); } deque d; while (num.size() != 0) { d.push_front(num.top()); num.pop(); } for (auto i = d.begin(); i != d.end(); i++) cout << *i; cout << endl; return 0;}