/*
第一个注册机
2015/1/4 Author by hackk
*/
#include <iostream>
#include <cstring>
#include <cstdio>
#include <cctype>
using namespace std;
char str[102];
int main() {
while (scanf("%s",str) != EOF) { //输入用户名
int len = strlen(str);
int k = 0x81276345;
for (int i = 0; i != len; i++) {
k += str[i];
k ^= (i<<8);
k *= (i+1)*(~(i*len));
}
printf("%ud\n",k);
}
}
/*
input: 123456
output: C757FED6
*/
第一个注册机
2015/1/4 Author by hackk
*/
#include <iostream>
#include <cstring>
#include <cstdio>
#include <cctype>
using namespace std;
char str[102];
int main() {
while (scanf("%s",str) != EOF) { //输入用户名
int len = strlen(str);
int k = 0x81276345;
for (int i = 0; i != len; i++) {
k += str[i];
k ^= (i<<8);
k *= (i+1)*(~(i*len));
}
printf("%ud\n",k);
}
}
/*
input: 123456
output: C757FED6
*/