#include <stdio.h>

void main()
{
    FILE *fp;
    fp = fopen("input.txt", "r");

    char str;
    int sum;

    while (str != endln)
    {
        str = readln(fp);
        sum = sum + str;
    }

    printf("%d", sum);
}