# -*- coding: utf-8 -*- def main(): s = input() ret = 0 for c in s: if c.isnumeric(): ret += int(c) print(ret) if __name__ == '__main__': main()