#include using namespace std; ifstream f("main.in"); ofstream g("main.out"); int main() { int n,r; f>>n>>r; if(n==8) cout<<"(7*5)^"<