#include<bits/stdc++.h> using namespace std; int popb(stack<int>&s) { int top = s.top(); s.pop(); if(s.empty()) { return top; } int t = popb(s); s.push(top);...