You are a wrongly-accused prisoner in a high-security prison, where you have been sentenced for life. However, one of the guards believes your story, and has given you a single chance to escape. He has told you that there is a special word you can say to the man at the gate, and he will gladly open the way out for you. The same day, you found a cryptic bit of paper underneath your bed. The paper reads as follows:


You realise this must be the guard trying to give you a clue of how to escape, or what the secret word is, but you have no idea what it means. You also know that the man at the gate will not hesitate to kill anyone who speaks the incorrect password.

You get one shot at this, so you walk up to the gatekeeper. What should you say to him?


To finish off the great work done by ABcDexter and f''

You should say to the guard:

Hello World!

These lines:

Give me 5!

Are a hint to use the:

Esoteric programming language HighFive

I wrote the following interpreter:

#include <iostream>
using namespace std;

string s;
int a[256][5], seg, ptr, lastmod;

int main() {
    cin >> s;
    for(int i = 0; i < s.size(); i++) {
        if(s[i] == '+') {
            lastmod = a[seg][ptr];
        else if(s[i] == '-') {
            lastmod = a[seg][ptr];
        else if(s[i] == '/')
            ptr = (ptr + 1) % 8;
        else if(s[i] == '*') {
            if(lastmod != 0) {
                i += a[seg][ptr];
        else if(s[i] == '.')
            cout << (char)a[seg][ptr];
            cout << "oops" << endl;
    cout << endl;

It's not exactly accurate as the memory size of int is bigger than a byte, but for this purpose it's ok.

  • $\begingroup$ Took me the longest time to figure out how the '*' worked. Once I figured out it was keeping an extra variable for the last modified value, then I had it. $\endgroup$ – LeppyR64 Jun 10 '16 at 15:40
  • $\begingroup$ I did the segmenting wrong. Oh well. When I get some time I might update it. $\endgroup$ – LeppyR64 Jun 10 '16 at 16:07
  • 1
    $\begingroup$ ... Well now I don't understand how OP said the answer is one word yet still accepted this? $\endgroup$ – feelinferrety Jun 11 '16 at 3:50
  • $\begingroup$ @feelinferrety It's possible that he didn't execute the code segment that he copied from the Wiki page. The caption for it is HELLO. $\endgroup$ – LeppyR64 Jun 11 '16 at 3:52
  • $\begingroup$ @feelinferrety I was going to answer with that but my inner-nerd took over and saw that there were more than 5 full stops in the code. $\endgroup$ – LeppyR64 Jun 11 '16 at 3:57

A simple


conversion shows this

Give me 5!
I'm stuck on the fence between 3 train tracks!
Tgt 3h@.h r31gpv5tewy.33n@ .

As f'' hinted in comments:

There is hint of Rail fence cipher

in this

I'm stuck on the fence between 3 train tracks!

In this

I used the rail fence decoder and with 3 as the key

The result is:

..Th3 gr33t1ng p@v35 the w@y.

So, my final(hopefully) answer is:

As in the first line Give me 5! as high-five, but here it's $5!$ i.e. $120$.
So, I will say 120 or just give a high-five.

  • $\begingroup$ I suggest you look at the Hex to ASCII more closely, it isn't that simple. $\endgroup$ – George Gibson Jun 9 '16 at 14:52
  • $\begingroup$ Also, the guard said that it was a single word... $\endgroup$ – George Gibson Jun 9 '16 at 14:53
  • 1
    $\begingroup$ Nope, it's one word. $\endgroup$ – George Gibson Jun 9 '16 at 14:54
  • 2
    $\begingroup$ "fence" and "train tracks" is an obvious clue for a railfence cipher. $\endgroup$ – f'' Jun 9 '16 at 15:07
  • 1
    $\begingroup$ Let us continue this discussion in chat. $\endgroup$ – George Gibson Jun 9 '16 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.