text: def getNum():  # 获取用户不定长度的输入
      string = input()
  
      a = string.split(',')
      a = list(map(int,a))
  
      #int_list = list(map(int,a))
      return a
  
  
  def mean(numbers):  # 计算平均值
      m = 0.0
      for x in numbers:
          m += x
      m /= len(numbers)
      return m
  
  def dev(numbers, mean):  # 计算标准差
      sdev = 0.0
      for num in numbers:
          sdev = sdev + (int(num) - mean) ** 2
      return pow(sdev / (len(numbers) - 1), 0.5)
  
  
  def median(numbers):  # 计算中位数
      numbers.sort()
  
      l = len(numbers)
      if ( l % 2 == 0 ):
          med = (numbers[int((l-2)/2)]+numbers[int(l/2)])/2
      else:
          med = numbers[int((l-1)/2)]
      return med
  
  
  n = getNum()
  m = mean(n)
  s = dev(n,m)
  print(m)
  print(s)
  print(median(n))
  #print("平均值:{:.2f},标准差:{:.2f},中位数:{}".format(m,s,median(n)))