//Problem c from mindcoding2015Finals1 //"We are drowning in information and starved for knowledge." #include #include #include #include #include #include using namespace std; #define int64 long long const int inf = 0x3f3f3f3f; int main() { ios::sync_with_stdio(false); int n, r; cin >> n >> r; cout << "("; for (int i = 1, N = n; i <= n and N > n / 4; ++i, N--) { cout << N; if (i!= 4 * r) { cout << "*"; } } cout << "/(24^" << n / 4 << ")"; cout << ")^" << r << '\n'; return 0; }