#include <iostream>
using namespace std;
int main()
{
string s {"abcd "};
int suma=0;
for(char znak:s){
cout<<static_cast<int> (znak)<<endl;
suma+=znak;
}
cout<<suma<<endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICBzdHJpbmcgcyB7ImFiY2QgIn07CiAgIGludCBzdW1hPTA7CiAgIGZvcihjaGFyIHpuYWs6cyl7CiAgICAgICBjb3V0PDxzdGF0aWNfY2FzdDxpbnQ+ICh6bmFrKTw8ZW5kbDsKICAgICAgIHN1bWErPXpuYWs7CiAgIH0KICAgY291dDw8c3VtYTw8ZW5kbDsKfQo=