#include <stdio.h>
#include <string.h>

int ChartoHex(char c)
{
    int hex;
    
    if(c>='A'&&c<='Z')
        hex=c-'A';
    else if(c>='a'&&c<='z')
        hex=c-'a';

    return hex;
}

int main(void)
{
    char a[101] = {0};
    int length,position;
    int abc[26]={-1};
    
    scanf("%s",a);
    length = strlen(a);
    
    for(int j=0;j<length;j++)
    {
        position = ChartoHex(a[j]);// Ascii to Hex A
        if(abc[position]==-1)
            abc[position]=j;
    }
    for(int i=0;i<26;i++)
        printf("%d ",abc[i]);
}