number = int(input())numbers = [int(num) for num in input()]total = sum(numbers)print(total)
5 54321
15
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!