about summary refs log tree commit diff
path: root/NTU/mkc.c
blob: 87e0008a7c776717ccaaea59d35687594475fd82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <string.h>

int main()
{
	char m[256], i;
	scanf("%s", m);

	short n = -(strlen(m) * 48);
	for (i = 0; i < strlen(m); i++)
		n += m[i];

	printf("%hd\n", n);

	return 0;
}