def ascan; gets.split.map(&:to_i);end n,m = ascan puts ascan[0...m]*" "