object MainKt {
  @JvmStatic fun main(args:Array<String>) {
    val s=readLine()
    for (c in 0..3)
    {
      print(s!![c])
    }
    print(" ")
    for (c in 4..11)
    {
      print(s!![c])
    }
    println()
  }
}
