#!/usr/bin/env python intxt = list(input()) ans = 0 for i in intxt: if i.isdigit(): ans += int(i) print(ans)