print eval join('+',map{$_?$_:10}split'',<>);