#include <stdio.h>
#include <stdlib.h>

int main()
{

    char buf[9999];
    int input;

    int distance;

    char *ptr, *qtr;

    while ( fgets( buf, sizeof(buf), stdin)!=NULL ) {

        ptr=buf;
        qtr=ptr+1;


        while ( *(qtr)!='\n' ) {


            distance=( *qtr-'a' ) - ( *ptr-'a');

            if( distance>=0 ) {
                printf("%d", distance);
            }
            else {
                printf("%d", -distance);

            }
            qtr++;
            ptr++;
        }
        printf("\n");
    }

}
