1. C, Tobias Fuchs

/* Author: Tobias Fuchs
* Problem: 458
* Verdict: Accepted
* Runtime: 0.01
*/

#include<iostream>

/* Not needed. Offset is always 7.
* Usage:
*
* offset = decode(first_char_of_string);
* c = c - offset;
int decode_offset(char c) {
return ((int)c - (int)('*'));
}
*/
static char str[1000000];
int main()
{
int c, index; // autocast
index = 0;
while((c = getchar()) != EOF ) { str[index++] = (c==10)?c:c-7; } // do not decode newline
str[index] = 0; // terminate string
printf(str);
return 0;
}