import java.util.Scanner

/**
  * Created by micchon1 on 2016/09/29.
  */
object Main extends App {
  val sc = new Scanner(System.in)
  val str = sc.next()
  val (head , tail) = str.splitAt(4)
  val ans = head ++ " " ++ tail
  println(ans)
}