#!/usr/bin/env python3 #fileencoding: utf-8 print(sum([int(i) for i in input().strip() if i.isdigit()]))