package main import "fmt" func main() { var K int fmt.Scan(&K) n := make([]int, K) var a, b int b = K - 1 for i := 1; i <= K; i++ { if i%2 == 1 { n[a] = i a++ } else { n[b] = i b-- } } for i := 0; i < K; i++ { fmt.Print(n[i]) if i == K-1 { fmt.Println("") } else { fmt.Print(" ") } } }