fork(3) download
  1. n = input()
  2.  
  3. print(sum(int(i) for i in n))
Success #stdin #stdout 0.01s 28384KB
stdin
123
stdout
6