a = gets.chomp b = gets.chomp c = ["(", ")", "/"] c.insert(1,a,b,a) puts c.join