// No.687 E869120 and Constructing Array 1 package main import "fmt" func main() { var n int fmt.Scan(&n) var a, b int for i := 1; i < 11; i++ { for j := 1; j < 11; j++ { if i+j == n { a = i b = j break } } } fmt.Println(a, b) }