#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
//Main variables intalized here
int disp=0;
int f = 0;
int ii = 0;
char szInput[128];
char cAlpha[] = {" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX
YZ"};
int nIndex[] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2
0,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9,10,11,12,13,
14,15,16,17,18,19,20,21,22,23,24,25,26};
int ninputindex[128];
//Beyond here is the program
cout << ">:";
cin >> szInput;
for (; szInput[f] != '\0'; f++)
{
ii=0;
//cout << "\nloop 1: " << f;
for (;ii<53;ii++)
{
//cout << "\nloop 2: " << ii;
if (szInput[f] == cAlpha[ii])
{
ninputindex[f]=nIndex[ii];
}
}
}
int j = f ;
for (;j > 0;j--)
{
cout << ninputindex[disp] << " ";
disp++;
}
system("PAUSE");
return 0;