import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000591_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { StringBuilder b = new StringBuilder("(^o^)/"); char t1 = br.readLine().toCharArray()[0]; char t2 = br.readLine().toCharArray()[0]; b.setCharAt(1, t1); b.setCharAt(3, t1); b.setCharAt(2, t2); System.out.println(b.toString()); } }