/*
 * This Bf was written by Brian Kell. He started writing it on January 20,
 * 2003. After many excruciating and painful hours, it was finally finished in
 * the wee hours of the morning on January 26. He hopes to never touch it
 * again, for reasons that should be apparent. If you should wish to contact
 * the author of this mess, e-mail abodeman@yahoo.com.
 *
 * Bf resources:
 * http://www.catseye.mb.ca/esoteric/bf/
 * http://home.wxs.nl/~faase009/Ha_BF.html
 */

#include <stdio.h> /* for printf and scanf */
#include <stdlib.h> /* for exit */

/* The type to use for memory cells */
typedef unsigned char MemoryType;

/* How many memory cells are allocated */
#define MEMORY_SIZE 134

int main ( void ) {

    /* Bf Code
     *
     * Memory map, to clear up a few non-obvious parts of the code:
     * ===  ===  ===  ====  =====  =====  ===  ===  =======  =======  =======
     *  0    1    2   3-34  35-66  67-98  99   100  101-111  112-122  123-133
     * TXT  CT1  CT2  BIN    BC1    BC2   INP  ICT    QUE      QCP      QTM
     * ===  ===  ===  ====  =====  =====  ===  ===  =======  =======  =======
     */
    char * bf = "\
opening text >++++++[<+++++++++++>-]<.>+++++[<++++++++>-]<-.+++++.------------\
-.>++++[<++++>-]<+.+++++++.>++++++++[<----------->-]<-.>+++++++++[<+++++++++>-\
]<+.-------------.+++++++++++.++.-------------.++++++++++++++.--------------.+\
++++++++.++++++.>+++[<------>-]<-.>+++[<++++++>-]<+.-----------.++++++.-.+++++\
.>+++++++[<------------>-]<+.>+++++++[<++++++++++>-]<.+++++++++.+++.>+++++++++\
[<--------->-]<-.>+++++++[<++++++++++++>-]<.------------.---.>+++++++[<-------\
--->-]<+.>+++++++[<++++++++++>-]<.+++++++++.---..+++.++++++++.--------------.+\
++++.-------.>+++++++[<---------->-]<-.>++++++++[<++++++++++>-]<.-.++++.------\
----.+++++++++++.-----------.+++++++++++++.>++++[<---->-]<-.>+++++++[<--------\
-->-]<+.>++++++++[<+++++++++>-]<+.+++++.++++++.---------------.++.--.+++++++++\
++++.+.>+++++++[<------------>-]<+.>++++++++[<++++++++>-]<+.>++++[<++++>-]<+.-\
------------.>+++++++[<---------->-]<+.>++++++++[<++++++++>-]<+.>+++[<++++++>-\
]<.>+++++++[<------------>-]<+.>+++++++[<++++++++++>-]<.+++++++++.---..+++.+++\
+++++.----.>+++++++[<-------->-]<-.>++++++[<-------->-]<..\
>+++[<+++++++>-]<+..........>++++[<++++>-]<+.>++++[<---->-]<-..>++++[<+++++++>\
-]<+.>++++[<------->-]<-..>>+++++++[<++++[<++++>-]<....>++++[<---->-]<..>>-]<+\
+++[<++++>-]<...+.>+++++[<-------->-]<+.>+++[<+++++++>-]<+........>++++[<++++>\
-]<+.++++++.--.>+++[<------->-]<..>++++[<+++++++>-]<+.>++++[<------->-]<-..>>+\
+++++[<++++[<++++>-]<....>++++[<---->-]<..>>-]<++++[<++++>-]<+.-.+.-.>++++[<--\
-->-]<..>++++[<++++>-]<+....>+++++[<-------->-]<+.>+++[<+++++++>-]<+..>++++[<+\
+++>-]<+.+++.-.--.+++++.-..++.-.>+++[<------->-]<-..>++++[<+++++++>-]<+.>++++[\
<------->-]<-..>++++[<++++>-]<....>>+++++++[<++++[<---->-]<..>++++[<++++>-]<+.\
-...>>-]<++++++[<------>-]<--..\
set ict >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+\
while ict [[-]\
clear que >[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]\
clear bin <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[\
-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]\
prompt <<<[-]>+++++++[<++++++++++>-]<-.>+++++[<++++++++>-]<+.++++++.----------\
-----.+++++++++++++.>+++++++++[<--------->-]<-.>++++++++[<++++++++>-]<+.>+++++\
+++[<-------->-]<-.>++++++++[<++++++++++>-]<.-.++++.----------.+++++++++++.---\
--------.+++++++++++++.>++++[<---->-]<-.>+++++++[<---------->-]<+.>++++++++[<+\
++++++++>-]<+.+++++.++++++.---------------.++.--.+++++++++++++.>+++++++++[<---\
------>-]<-.>++++++++[<+++++++++>-]<+.+++++.>++++++[<------------->-]<.>++++++\
+[<++++++++++++>-]<.------------.---.>+++++++[<---------->-]<+.>+++++++++[<+++\
++++++>-]<+.>++++[<---->-]<-.+++++++++++++.-------.--.>+++++++[<---------->-]<\
+.>++++++++[<++++++++++>-]<-.---------.>+++++++[<---------->-]<...>++++[<++++>\
-]<+.>++++[<---->-]<-...>+++++++[<++++++++++++>-]<.-----.>++++++++[<----------\
>-]<+...>+++[<++++++>-]<.-.+++.+++.---.++++.-----.+++.--.+++.>+++++[<---------\
>-]<.>+++[<+++++++>-]<+..>++++++++[<++++++++++>-]<-.+++.>>+++++[<+++++>-]<+[<-\
--->-]<.>++++++[<++++++++++>-]<-.>+++++[<++++++++>-]<+.++++++.---------------.\
+++++++++++++.>+++++++++[<--------->-]<-.>++++[<++++>-]<.>++++[<---->-]<.>++++\
+++[<++++++++++++>-]<.-----.>++++++++[<---------->-]<+.>+++++++++[<+++++++++>-\
]<.++++.------------.+++++++++++.>+++++++[<---------->-]<.--------------..\
while input >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>,----------[\
shift que >>>>>>>>>>>>[-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+<-]<[>+\
<-]<[>+<-]<[>+<-]\
copy inp into que <<[>+>+<<-]>[<+>-]>++++++++++<<\
copy bin into bc1 and bc2 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<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+<<<<<<<<<<<-]>>>>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>[[\
>>>>>>>>>>>+<<<<<<<<<<<-]>>>>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>[[>>>>\
>>>>>>>+<<<<<<<<<<<-]>>>>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>[[>>>>>>>>\
>>>+<<<<<<<<<<<-]>>>>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>[[>>>>>>>>>>>+\
<<<<<<<<<<<-]>>>>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>[[>>>>>>>>>>>+<<<<\
<<<<<<<-]>>>>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>[[>>>>>>>>>>>+<<<<<<<<\
<<<-]>>>>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>[[>>>>>>>>>>>+<<<<<<<<<<<-\
]>>>>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>[[>>>>>>>>>>>+<<<<<<<<<<<-]>>>\
>>>>>>>>>>>>>>>>>>>-<<<<<<<<<<<<<<<<<<<<<<]>>>>>>>>>>>>+[+++++++++++++++++++++\
++++++++++.[-]]>+[+++++++++++++++++++++++++++++++.[-]]>+[+++++++++++++++++++++\
++++++++++.[-]]>+[+++++++++++++++++++++++++++++++.[-]]>+[+++++++++++++++++++++\
++++++++++.[-]]>+[+++++++++++++++++++++++++++++++.[-]]>+[+++++++++++++++++++++\
++++++++++.[-]]>+[+++++++++++++++++++++++++++++++.[-]]>+[+++++++++++++++++++++\
++++++++++.[-]]>+[+++++++++++++++++++++++++++++++.[-]]>+[+++++++++++++++++++++\
++++++++++.[-]]<<<<<<<<<<<[.[-]]<[.[-]]<[.[-]]<[.[-]]<[.[-]]<[.[-]]<[.[-]]<[.[\
-]]<[.[-]]<[.[-]]<[.[-]]\
print = <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<..>++++[<+++++++>-]<+.>++++[<-------\
>-]<-..\
output binary >>>++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++\
+++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++\
+++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++.<<<<<<..>>>>>>>+++\
+++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++\
+++++++++++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++\
+++++++++++++++++++++++++++++++++++++++.<<<<<<<<<<..>>>>>>>>>>>+++++++++++++++\
+++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++\
+++++.>++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++\
+++++++++++++++++++++++++++.<<<<<<<<<<<<<<..>>>>>>>>>>>>>>>+++++++++++++++++++\
+++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++\
+.>++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++\
+++++++++++++++++++++++.<<<<<<<<<<<<<<<<<<..>>>>>>>>>>>>>>>>>>>+++++++++++++++\
+++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++\
+++++.>++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++\
+++++++++++++++++++++++++++.<<<<<<<<<<<<<<<<<<<<<<..>>>>>>>>>>>>>>>>>>>>>>>+++\
+++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++\
+++++++++++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++\
+++++++++++++++++++++++++++++++++++++++.<<<<<<<<<<<<<<<<<<<<<<<<<<..>>>>>>>>>>\
>>>>>>>>>>>>>>>>>++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++\
+++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++\
+++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++.<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<..>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+++++++++++++++++++++++++++++++++\
+++++++++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++\
+++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++\
+++++++++.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<[-]++++++++++..>>>>>>>>>>>>>>>>>>>\
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\
>>>\
end if ict ]<[>+<-]>\
end while ict ]\
";

    /* Code pointer */
    char * cp = bf;
    
    /* Bracket counter */
    int b;
    
    /* Error pointer (to track the source of errors) */
    char * e;

    /* Memory */
    MemoryType m [ MEMORY_SIZE ] ;
    
    /* Data pointer */
    MemoryType * p = m ;

    /* Initialize memory to 0 */
    int i;
    for ( i = 0; i < 128; ++ i ) {
        m [ i ] = 0;
    }
    
    int r; /* the character read from input */
    
    /* Interpret Bf */
    while ( * cp != '\0' ) {
    
        switch ( * cp ) {
            case '>':
                if ( p >= m + MEMORY_SIZE - 1 ) {
                    fprintf ( stderr, "\nPointer past end of memory at %d\n",
                              cp - bf ) ;
                    exit ( EXIT_FAILURE ) ;
                }
                ++ p;
                break;
            case '<':
                if ( p <= m ) {
                    fprintf ( stderr, "\nPointer past start of memory at %d\n",
                              cp - bf ) ;
                    exit ( EXIT_FAILURE ) ;
                }
                -- p;
                break;
            case '+':
                ++ * p;
                break;
            case '-':
                -- * p;
                break;
            case '.':
                putchar ( * p ) ;
                fflush ( stdout ) ;
                break;
            case ',':
                r = getchar ( ) ;
                if ( r == EOF ) {
                    * p = 0;
                } else {
                    * p = r;
                }
                fflush ( stdout ) ;
                break;
            case '[':
                e = cp;
                if ( * p == 0 ) {
                    b = 1;
                    do {
                        ++ cp;
                        if ( * cp == '[' ) {
                            ++ b;
                        } else if ( * cp == ']' ) {
                            -- b;
                        }
                    } while ( * cp != '\0' && ( b > 0 || * cp != ']' ) ) ;
                    if ( * cp == '\0' ) {
                        fprintf ( stderr, "\nUnmatched [ at %d\n", e - bf ) ;
                        exit ( EXIT_FAILURE ) ;
                    }
                }
                break;
            case ']':
                e = cp;
                if ( * p != 0 ) {
                    b = 1;
                    while ( cp > bf && ( b > 0 || * cp != '[' ) ) {
                        -- cp;
                        if ( * cp == ']' ) {
                            ++ b;
                        } else if ( * cp == '[' ) {
                            -- b;
                        }
                    }
                    if ( cp == bf && * cp != '[' ) {
                        fprintf ( stderr, "\nUnmatched ] at %d\n", e - bf ) ;
                        exit ( EXIT_FAILURE ) ;
                    }
                }
                break;
            
        } /* end switch */
        
        ++ cp;
    
    }

    return 0;

}
