https://www.acmicpc.net/problem/2309
import java.util.*;
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var arr=Array(9,{0})
var sum=-100
for(i in 0 until 9){
arr[i]=s.nextInt()
sum+=arr[i]
}
var c=0
for(i in 0 until 8){
for(j in i+1 until 9){
if(arr[i]+arr[j]==sum){
arr[i]=110
arr[j]=110
c=1
break
}
}
if(c==1) break
}
arr.sort()
for(i in 0 until 7) println(arr[i])
}