#include <iostream>
#include <stdio.h>
using namespace std;
int main(){
string S;
getline(cin,S);
int ar1[4]={'L','o','v','e'},ar2[4]={'l','o','v','e'},c=0,d=0,stop=0,e;
int ch[1000]={0};
for (int i=0;S[i]!='\0';i++){
ch[i]=S[i];
if (ch[i]<65 || (ch[i]>90 && ch[i]<97) || ch[i]>122){
ch[i]=0;
}
//cout<<ch[i]<<" ";
}
for(int k=0;k<26;k++){
//cout<<d<<" ";
for (int i=0;S[i]!='\0';i++){
cout<<ch[i]<<" ";
if (ch[i]>96){
ch[i]=((ch[i]-96)%26)+96;
}else if(ch[i]>64){
ch[i]=((ch[i]-64)%26)+64;
}
if (ch[i]==ar1[c] || ch[i]==ar2[c]){
c++;
if (c==4){
stop=1;
break;
}
}
else{
//cout<<c<<ch[i];
c=0;
}
ch[i]+=1;
}
d=k;
if(stop==1){
break;
}
//cin>>e;
}
//cout<<c;
if(c==4){
cout<<d;
}
}