#include <bits/stdc++.h>
using namespace std;

string T1, T2;

int main(void) {
  cin >> T1 >> T2;
  cout << "(" << T1 << T2 << T1 << ")/" << endl;
}