import java.util.Scanner object Main { val sc = new Scanner(System.in) def main(args: Array[String]): Unit = { val n = sc.nextInt for (i <- 1 to 10; j <- 1 to 10) { if (i + j == n) { println(s"$i $j") return } } } }