object Main extends App {
  val o = io.StdIn.readLine
  val e = io.StdIn.readLine

  def rec(str1: List[Char], str2: List[Char], choose: Int, acc: List[Char]): String = choose match {
    case 1 => str1 match {
      case Nil  => acc.toString
      case head::tail => rec(tail, str2, 2, acc:+head)
      }
    case 2 => str2 match {
      case Nil  => acc.toString
      case head::tail => rec(str1, tail, 1, acc:+head)
    }
  }

  val result = rec(o.toList, e.toList, 1, Nil)
  println(result)
}
