#include using namespace std; #define rep(i,n) for(int i = 0; i < (n);i++) #define sz(x) int(x.size()) typedef long long ll; typedef pair P; int main(){ string s; cin >> s; int n = sz(s); int res = stoi(s); for (int bit = 3; bit < (1 << n); bit++) { int cnt = __builtin_popcount(bit); if (cnt != 2) continue; vector tmp; for (int j = 0; j < n; j++) if (bit & (1<