import java.util.Scanner; import java.util.Random; public class no687 { public static void main(String[] args){ Scanner s = new Scanner(System.in); System.out.println("数値を入力してください"); int num = s.nextInt(); Random rand = new Random(); int a = rand.nextInt(num-2)+2; int b = num -a; System.out.println(a+ "+" +b +"="+ num+"です"); } }