https://www.acmicpc.net/problem/3003 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] str = sc.nextLine().split(" "); int [] result = new int[str.length]; result[0] = 1; result[1] = 1; result[2] = 2; result[3] = 2; result[4] = 2; ..