#!/usr/bin/env python3 #! -*- coding: UTF-8 -*- def main(): text = input() print(sum([int(i) for i in text if i.isdigit()])) if __name__ == '__main__': main()