题库练习 Design Tutorial: Learn from Math
← 上一题 下一题 →

A9599 | Design Tutorial: Learn from Math

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

One way to create a task is to learn from math. You can generate some random math statement or modify some theorems to get something new and build a new task from that.

For example, there is a statement called the "Goldbach's conjecture". It says: "each even number no less than four can be expressed as the sum of two primes". Let's modify it. How about a statement like that: "each integer no less than 12 can be expressed as the sum of two composite numbers." Not like the Goldbach's conjecture, I can prove this theorem.

You are given an integer $n$ no less than 12, express it as a sum of two composite numbers.

输入格式

The only line contains an integer $n$ $(12<=n<=10^{6})$ .

输出格式

Output two composite integers $x$ and $y$ $(1<x,y<n)$ such that $x+y=n$ . If there are multiple solutions, you can output any of them.

输入输出样例

输入 #1
12
输出 #1
4 8
输入 #2
15
输出 #2
6 9
输入 #3
23
输出 #3
8 15
输入 #4
1000000
输出 #4
500000 500000
C++ 编辑器
输入
输出