/* write your code below */
,[ Read A (10 chars) into memory
>++++++++[-<+++++++++>] Store the first binary number (for example 49 or 48 for '1' or '0')
, Read next A's digit
>++++++++[-<+++++++++>] Store the binary number
, Read next A's digit (do this 10 times for A)
, Repeat for B (5 chars)
>++++++++[-<+++++++++>] Store binary digits for B
# Start comparing A with B, starting at index 0 of A
# Compare character by character for 5 consecutive characters
# If all match, output 1, else move to the next starting index in A
# Pseudocode logic in Brainf**k:
# for i in range(len(A) - len(B) + 1):
# if A[i:i+len(B)] == B:
# print 1
# exit
# print 0
]
Lyogd3JpdGUgeW91ciBjb2RlIGJlbG93ICovCixbICAgICAgICAgIFJlYWQgQSAoMTAgY2hhcnMpIGludG8gbWVtb3J5CiAgPisrKysrKysrWy08KysrKysrKysrPl0gICBTdG9yZSB0aGUgZmlyc3QgYmluYXJ5IG51bWJlciAoZm9yIGV4YW1wbGUgNDkgb3IgNDggZm9yICcxJyBvciAnMCcpCiAgLCAgICAgICAgICAgICAgICAgICAgICAgICAgUmVhZCBuZXh0IEEncyBkaWdpdAogID4rKysrKysrK1stPCsrKysrKysrKz5dICAgIFN0b3JlIHRoZSBiaW5hcnkgbnVtYmVyCiAgLCAgICAgICAgICAgICAgICAgICAgICAgICAgUmVhZCBuZXh0IEEncyBkaWdpdCAoZG8gdGhpcyAxMCB0aW1lcyBmb3IgQSkKICAsICAgICAgICAgICAgICAgICAgICAgICAgICBSZXBlYXQgZm9yIEIgKDUgY2hhcnMpCiAgPisrKysrKysrWy08KysrKysrKysrPl0gICAgU3RvcmUgYmluYXJ5IGRpZ2l0cyBmb3IgQgoKICAjIFN0YXJ0IGNvbXBhcmluZyBBIHdpdGggQiwgc3RhcnRpbmcgYXQgaW5kZXggMCBvZiBBCiAgIyBDb21wYXJlIGNoYXJhY3RlciBieSBjaGFyYWN0ZXIgZm9yIDUgY29uc2VjdXRpdmUgY2hhcmFjdGVycwogICMgSWYgYWxsIG1hdGNoLCBvdXRwdXQgMSwgZWxzZSBtb3ZlIHRvIHRoZSBuZXh0IHN0YXJ0aW5nIGluZGV4IGluIEEKICAKICAjIFBzZXVkb2NvZGUgbG9naWMgaW4gQnJhaW5mKiprOgogICMgZm9yIGkgaW4gcmFuZ2UobGVuKEEpIC0gbGVuKEIpICsgMSk6CiAgIyAgICBpZiBBW2k6aStsZW4oQildID09IEI6CiAgIyAgICAgICAgcHJpbnQgMQogICMgICAgICAgIGV4aXQKICAjIHByaW50IDAKXQo=