document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <cstdio>
  2. #define char_A 65
  3. #define char_a 97
  4.  
  5. int main(){
  6. int result=0;
  7. int a;
  8. while(true){
  9.     a=fgetc(stdin);
  10.     if(a>=char_A&&a<=char_A+25) result+=(a-char_A+1);
  11.     if(a>=char_a&&a<=char_a+25) result+=(a-char_a+1);
  12.     if(a==10) {printf("%d\\n",result);result=0;}
  13. }
  14. return 0;
  15. }
');