Q​u​i​n​e R​e​l​a​y​!

16

2

Quine Relay!

A quine relay of order \$n\$ is a series of programs \$P_1\dots P_n\$ in distinct languages such that each program \$P_i\$ outputs \$P_{i+1}\$ and \$P_n\$ outputs \$P_1\$.

For example, a 2-quine relay can be seen here:

Ruby → Perl 6:

This Ruby program:

$><<"print ("
p (DATA.read*2).chars.map(&:ord)
$><<".map: &chr).join"

__END__
$><<"print ("
p (DATA.read*2).chars.map(&:ord)
$><<".map: &chr).join"

__END__

outputs this Perl 6 program:

print ([36, 62, 60, 60, 34, 112, 114, 105, 110, 116, 32, 40, 34, 10, 112, 32, 40, 68, 65, 84, 65, 46, 114, 101, 97, 100, 42, 50, 41, 46, 99, 104, 97, 114, 115, 46, 109, 97, 112, 40, 38, 58, 111, 114, 100, 41, 10, 36, 62, 60, 60, 34, 46, 109, 97, 112, 58, 32, 38, 99, 104, 114, 41, 46, 106, 111, 105, 110, 34, 10, 10, 95, 95, 69, 78, 68, 95, 95, 10, 36, 62, 60, 60, 34, 112, 114, 105, 110, 116, 32, 40, 34, 10, 112, 32, 40, 68, 65, 84, 65, 46, 114, 101, 97, 100, 42, 50, 41, 46, 99, 104, 97, 114, 115, 46, 109, 97, 112, 40, 38, 58, 111, 114, 100, 41, 10, 36, 62, 60, 60, 34, 46, 109, 97, 112, 58, 32, 38, 99, 104, 114, 41, 46, 106, 111, 105, 110, 34, 10, 10, 95, 95, 69, 78, 68, 95, 95, 10]
.map: &chr).join

which in turn outputs the original Ruby program.

The challenge

The first answer will be an order \$1\$ quine relay: a normal quine. It can be in any language.

The next answer will choose a different language and create an order \$2\$ quine relay using those two languages.

And so on. The \$k\$-th answer will create an order \$k\$ quine relay using the previous \$k - 1\$ languages and a new, different language.

Winning

If, after 2 weeks, no more answers have been added, the winner is the person who answered with the highest-order quine relay.

More rules

  • No person may answer twice in a row.
  • No person may answer within an hour of their most recent post.
  • Languages which differ by version are considered distinct. Thus, Python 2 and Python 3 can both be part of the chain.
  • Languages which differ by compiler or interpreter are not considered distinct. So, Python 3 (Cython) and Python 3 are considered interchangeable but not distinct.
  • Each answer may order the languages in any way. If the third answer has an order of Ruby &rightarrow; Perl 6 &rightarrow; JavaScript, you are not restricted to appending a language to the end. If you were adding Java to the mix, then you could write JavaScript &rightarrow; Ruby &rightarrow; Java &rightarrow; Perl 6 if you so desired.

Format for answers

n. Language1 &rightarrow; Language2 &rightarrow; … &rightarrow; Languagen

Language1

language 1 code

Language2

language 2 code

Language3

language 3 code

Languagen

language n code

Feel free to add explanations anywhere in your answers.

Conor O'Brien

Posted 2018-08-09T23:38:31.543

Reputation: 36 228

3You should add something like a 2 character minimum to prevent degenerate quine chains such as the empty string. Also, something to prevent languages that by default echo output their input. Alternatively, you can roll these into one by requiring that all outputs in the chain must be unique. – Yonatan N – 2018-08-10T02:53:36.170

@YonatanN Actually once enough languages get added it would be hard to pull that off... would be interesting to see someone try. Although I think all so far have empty quines. – Ørjan Johansen – 2018-08-10T02:56:45.650

@ØrjanJohansen as of now, someone can trash the question by using a Bubblegum-type language and an empty input. – Yonatan N – 2018-08-10T02:59:51.507

1@YonatanN Hm yeah I guess there are too many ways to abuse it. (Also this kind of thing is why other answer chaining questions give the win to the second last answer.) – Ørjan Johansen – 2018-08-10T03:03:37.210

3@YonatanN 0 or 1 character quines usually do not meet our standard definition of quine – Conor O'Brien – 2018-08-10T03:30:37.900

Answers

6

10. Javascript → Foo → brainfuck → Wumpus → Gol><> → RAD → ><> → Python 2 → Brain-Flak → 4

Edit: For the next answer, I've golfed how the Python generates the Brain-Flak a bit more here, but I can't be bothered to update the links.

Added Gol><>. It's just a short rpH after the Wumpus code. I've also optimised the brainfuck and Brain-Flak code somewhat. Verification!

JavaScript (Node.js)

(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);b=c(96);x=0;console.log(Q+[...`${Q}99+&;75*1-l2:8-&o@rpH${q}${q+q}rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;''a''p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,str().join(map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:${b}600${b}+(str(c-99).zfill(2)+${b}99500${b}.zfill(10) if c>99 else str(c).zfill(2)+${b}500${b}),[`+[...`(f=${f})()`].map(c=>c.charCodeAt())+`]))[::-1]+${b}99996${b}))),${[...'pppppppPpPPfFpPPfFpPPfFpPPfFPppPpPPfFpPP'].join`+`}${q}`].map(s=>c(43).repeat(Math.max(-x+s.charCodeAt(),0))+c(45).repeat(Math.max(x-(x=s.charCodeAt()),0))+c(46)).join(c()).match(/.{1,253}/g).join(c(10)+Q))})()

Try it online!

Foo

Try it online!

brainfuck

Try it online!

Wumpus

"99+&;75*1-l2:8-&o@rpH'''rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;''a''p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,str().join(map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,120,61,48,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,57,57,43,38,59,55,53,42,49,45,108,50,58,56,45,38,111,64,114,112,72,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,45,120,43,115,46,99,104,97,114,67,111,100,101,65,116,40,41,44,48,41,41,43,99,40,52,53,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,120,45,40,120,61,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,44,48,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,99,40,41,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`))),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P'

Try it online!

Gol><>

"rpH'''rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;''a''p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,str().join(map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,120,61,48,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,57,57,43,38,59,55,53,42,49,45,108,50,58,56,45,38,111,64,114,112,72,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,45,120,43,115,46,99,104,97,114,67,111,100,101,65,116,40,41,44,48,41,41,43,99,40,52,53,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,120,45,40,120,61,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,44,48,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,99,40,41,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`))),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P'

Try it online!

RAD

'''rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;''a''p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,str().join(map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,120,61,48,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,57,57,43,38,59,55,53,42,49,45,108,50,58,56,45,38,111,64,114,112,72,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,45,120,43,115,46,99,104,97,114,67,111,100,101,65,116,40,41,44,48,41,41,43,99,40,52,53,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,120,45,40,120,61,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,44,48,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,99,40,41,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`))),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P'

Try it online!

><>

'rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;'a'p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,str().join(map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,120,61,48,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,57,57,43,38,59,55,53,42,49,45,108,50,58,56,45,38,111,64,114,112,72,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,45,120,43,115,46,99,104,97,114,67,111,100,101,65,116,40,41,44,48,41,41,43,99,40,52,53,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,120,45,40,120,61,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,44,48,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,99,40,41,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`))),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P

Try it online!

Python 2

def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;
p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,str().join(map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,120,61,48,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,57,57,43,38,59,55,53,42,49,45,108,50,58,56,45,38,111,64,114,112,72,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,45,120,43,115,46,99,104,97,114,67,111,100,101,65,116,40,41,44,48,41,41,43,99,40,52,53,41,46,114,101,112,101,97,116,40,77,97,116,104,46,109,97,120,40,120,45,40,120,61,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,44,48,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,99,40,41,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`))),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P

Try it online!

Brain-Flak

Try it online!

4

3.6999960040500600030000099500600615006009550060061500600625006002400000995006001400000995006006150060040500600995006006150060083500600170000099500600150000099500600060000099500600110000099500600040000099500600465006000300000995006001500000995006001200000995006001000000995006006750060005000009950060097500600150000099500600675006001200000995006000100000995006000200000995006004150060040500600515006005750060041500600595006008150060061500600995006004050060051500600525006004150060059500600985006006150060099500600405006005750060054500600415006005950060021000009950060061500600485006005950060099500600120000099500600110000099500600160000099500600120000099500600090000099500600020000099500600465006000900000995006001200000995006000400000995006004050060081500600435006009150060046500600465006004650060096500600365006002400000995006008150060026000009950060057500600575006004350060038500600595006005550060053500600425006004950060045500600090000099500600505006005850060056500600455006003850060012000009950060064500600150000099500600130000099500600725006003650060024000009950060014000009950060026000009950060036500600240000099500600140000099500600435006001400000995006002600000995006001500000995006001300000995006001300000995006006250060012000009950060060500600010000099500600020000099500600030000099500600325006001100000995006004050060021000009950060041500600585006000400000995006000900000995006001200000995006009850060097500600090000099500600325006000900000995006005950060015000009950060061500600130000099500600435006001300000995006004350060003000009950060043500600705006004350060080500600435006001400000995006004350060040500600130000099500600435006008050060041500600425006004050060009000009950060045500600210000099500600415006004350060081500600435006008050060032500600060000099500600030000099500600325006002100000995006006050060009000009950060032500600020000099500600090000099500600160000099500600020000099500600325006001300000995006004350060013000009950060043500600030000099500600435006007050060043500600805006004350060040500600130000099500600435006008050060041500600425006004050060021000009950060045500600090000099500600415006004350060080500600595006000900000995006006150060021000009950060059500600150000099500600020000099500600170000099500600180000099500600150000099500600110000099500600325006001500000995006005950060039500600395006009750060039500600395006001300000995006006150060099500600050000099500600150000099500600405006005250060048500600415006005950060080500600615006009950060005000009950060015000009950060040500600525006004950060041500600595006001400000995006006150060099500600050000099500600150000099500600405006005750060049500600415006005950060081500600615006009950060005000009950060015000009950060040500600575006005150060041500600595006000300000995006006150060099500600050000099500600150000099500600405006004950060050500600515006004150060059500600705006006150060099500600050000099500600150000099500600405006004950060050500600535006004150060059500600090000099500600615006005250060059500600130000099500600150000099500600060000099500600110000099500600170000099500600325006001300000995006004350060013000009950060043500600130000099500600435006001300000995006004350060013000009950060043500600130000099500600435006008050060043500600130000099500600435006008050060043500600130000099500600435006008050060043500600805006004350060003000009950060043500600705006004350060080500600435006000300000995006004350060070500600435006001300000995006004350060080500600435006008050060043500600030000099500600435006007050060043500600805006004350060003000009950060043500600705006004350060080500600445006001600000995006001700000995006001500000995006004050060041500600465006000700000995006001200000995006000600000995006001100000995006004050060010000009950060097500600130000099500600405006001100000995006004450060010000009950060097500600130000099500600405006000900000995006009750060010000009950060098500600010000099500600975006003250060021000009950060058500600120000099500600150000099500600010000099500600405006002100000995006004150060045500600525006005650060044500600160000099500600170000099500600150000099500600405006004150060046500600070000099500600120000099500600060000099500600110000099500600405006001000000995006009750060013000009950060040500600090000099500600975006001000000995006009850060001000009950060097500600325006009950060058500600365006002400000995006009850060026000009950060054500600485006004850060036500600240000099500600985006002600000995006004350060040500600160000099500600170000099500600150000099500600405006009950060045500600575006005750060041500600465006002300000995006000300000995006000600000995006000900000995006000900000995006004050060050500600415006004350060036500600240000099500600985006002600000995006005750060057500600535006004850060048500600365006002400000995006009850060026000009950060046500600230000099500600030000099500600060000099500600090000099500600090000099500600405006004950060048500600415006003250060006000009950060003000009950060032500600995006006250060057500600575006003250060002000009950060009000009950060016000009950060002000009950060032500600160000099500600170000099500600150000099500600405006009950060041500600465006002300000995006000300000995006000600000995006000900000995006000900000995006004050060050500600415006004350060036500600240000099500600985006002600000995006005350060048500600485006003650060024000009950060098500600260000099500600415006004450060091500600965006004350060091500600465006004650060046500600965006004050060003000009950060061500600365006002400000995006000300000995006002600000995006004150060040500600415006009650060093500600465006001000000995006009750060013000009950060040500600995006006150060062500600995006004650060099500600050000099500600975006001500000995006006750060012000009950060001000009950060002000009950060065500600170000099500600405006004150060041500600435006009650060093500600415006004150060091500600585006005850060045500600495006009350060043500600365006002400000995006009850060026000009950060057500600575006005750060057500600545006003650060024000009950060098500600260000099500600415006004150060041500600445006003650060024000009950060091500600465006004650060046500600395006001300000995006001300000995006001300000995006001300000995006001300000995006001300000995006001300000995006008050060013000009950060080500600805006000300000995006007050060013000009950060080500600805006000300000995006007050060013000009950060080500600805006000300000995006007050060013000009950060080500600805006000300000995006007050060080500600130000099500600130000099500600805006001300000995006008050060080500600030000099500600705006001300000995006008050060080500600395006009350060046500600070000099500600120000099500600060000099500600110000099500600965006004350060096500600260000099500600365006002400000995006001400000995006002600000995006009650060093500600465006001000000995006009750060013000009950060040500600160000099500600615006006250060099500600405006005250060051500600415006004650060015000009950060002000009950060013000009950060002000009950060097500600170000099500600405006007750060097500600170000099500600050000099500600465006001000000995006009750060021000009950060040500600455006002100000995006004350060016000009950060046500600995006000500000995006009750060015000009950060067500600120000099500600010000099500600020000099500600655006001700000995006004050060041500600445006004850060041500600415006004350060099500600405006005250060053500600415006004650060015000009950060002000009950060013000009950060002000009950060097500600170000099500600405006007750060097500600170000099500600050000099500600465006001000000995006009750060021000009950060040500600210000099500600455006004050060021000009950060061500600160000099500600465006009950060005000009950060097500600150000099500600675006001200000995006000100000995006000200000995006006550060017000009950060040500600415006004150060044500600485006004150060041500600435006009950060040500600525006005450060041500600415006004650060007000009950060012000009950060006000009950060011000009950060040500600995006004050060041500600415006004650060010000009950060097500600170000099500600995006000500000995006004050060047500600465006002400000995006004950060044500600505006005350060051500600260000099500600475006000400000995006004150060046500600070000099500600120000099500600060000099500600110000099500600405006009950060040500600495006004850060041500600435006008150060041500600415006002600000995006004150060040500600415004

Try it online!

Jo King

Posted 2018-08-09T23:38:31.543

Reputation: 38 234

6

3. JavaScript → Python 2 → Foo

JavaScript

Classic JS quine. This is a full program which outputs to console:

(f=_=>console.log(`print(${String.fromCharCode(39)}${String.fromCharCode(34)}(f=${f})()${String.fromCharCode(34)}${String.fromCharCode(39)})`))()

Try it online!

Python 2

Python code basically prints out the JS code with quotes:

print('"(f=_=>console.log(`print(${String.fromCharCode(39)}${String.fromCharCode(34)}(f=${f})()${String.fromCharCode(34)}${String.fromCharCode(39)})`))()"')

Try it online!

Foo

Foo code is JS code with quotes:

"(f=_=>console.log(`print(${String.fromCharCode(39)}${String.fromCharCode(34)}(f=${f})()${String.fromCharCode(34)}${String.fromCharCode(39)})`))()"

Try it online!

Downgoat

Posted 2018-08-09T23:38:31.543

Reputation: 27 116

Why not e.g. String.fromCharCode(39,34) to save on the repeated invocations? – ETHproductions – 2018-08-10T13:32:04.887

@ETHproductions I.. actually had no idea you could do that >_< – Downgoat – 2018-08-10T21:01:27.830

Or at least String.fromCharCode(39)+String.fromCharCode(34) to save a little bit ;-) – ETHproductions – 2018-08-10T21:13:51.853

5

1. Foo

Foo

A simple Foo quine:

>&41>&60>&99>&36>&40>&60>&41>&62>&105>&36>&34>&38>&62>&34>&40>&62>&41>&60>&40(<)>(">&"$i>)<($c<)

Try it online!

Conor O'Brien

Posted 2018-08-09T23:38:31.543

Reputation: 36 228

5

2. Python 2 → Foo

i used the basic python quine, then added the quotes

python:

_='_=%r;print chr(34)+_%%_+chr(34)';print chr(34)+_%_+chr(34)

Try it online!

foo:

"_='_=%r;print chr(34)+_%%_+chr(34)';print chr(34)+_%_+chr(34)"

Try it online!

Destructible Lemon

Posted 2018-08-09T23:38:31.543

Reputation: 5 908

5

5. ><> → JavaScript → brainfuck → Python 2 → Foo

Obligatory brainfuck answer.

><>

'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log([...`print(${q+Q+s+q}rpp>o<(f=${f})()${Q+q})`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join())})()

Try it online!

JavaScript

(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log([...`print(${q+Q+s+q}rpp>o<(f=${f})()${Q+q})`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join())})()

Try it online!

brainfuck

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.

Try it online!

Python 2

print('"\'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log([...`print(${q+Q+s+q}rpp>o<(f=${f})()${Q+q})`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join())})()"')

Try it online!

Foo

"'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log([...`print(${q+Q+s+q}rpp>o<(f=${f})()${Q+q})`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join())})()"

Try it online!

dzaima

Posted 2018-08-09T23:38:31.543

Reputation: 19 048

5

9. JavaScript → Foo → Brainfuck → Wumpus → RAD → ><> → Python 2 → Brain-Flak → 4

This... was.. fun.
No idea why I decided that 4 should be added, no idea why I remade the entire thing (of course, copy-pasting stuff around), but I did it :D

JavaScript

(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);b=c(96);console.log(Q+[...`${Q}76+&;l2:6-&o@${q}${q+q}rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;''a''p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:${b}600${b}+(str(c-99).zfill(2)+${b}99500${b}.zfill(10) if c>99 else str(c).zfill(2)+${b}500${b}),[`+[...`(f=${f})()`].map(c=>c.charCodeAt())+`]))[::-1]+${b}99996${b})),${[...'pppppppPpPPfFpPPfFpPPfFpPPfFPppPpPPfFpPP'].join`+`}${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join().match(/.{1,253}/g).join(c(10)+Q))})()

Try it online!

Since the output is too big for TIO to return, Here's a tester that cycles trough all the languages.

Foo

Try it online!

brainfuck

Try it online!

Wumpus

"76+&;l2:6-&o@'''rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;''a''p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,55,54,43,38,59,108,50,58,54,45,38,111,64,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`)),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P'

Try it online!

RAD

'''rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;''a''p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,55,54,43,38,59,108,50,58,54,45,38,111,64,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`)),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P'

Try it online!

><>

'rpp>o<def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;'a'p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,55,54,43,38,59,108,50,58,54,45,38,111,64,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`)),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P

><> outputs a newline in the middle with 'a' so the python function would be separated from the rest of the code.

Try it online!

Python 2

def n(x):global l;r=p+p+f+F+P+q+(p+P)*(l-x)+Q+P if x<l else p+p+f+F+P+(p+P)*(x-l)+P;l=x;return r;
p=chr(40);P=chr(41);q=chr(91);Q=chr(93);f=chr(123);F=chr(125);l=4;print p+p+p+p+p+p+P+p+P+p+P+P+f+F+P+f+F+p+P+P+f+F+P+f+F+P,map(n,map(lambda x:ord(x)-48,str().join(map(lambda c:`600`+(str(c-99).zfill(2)+`99500`.zfill(10) if c>99 else str(c).zfill(2)+`500`),[40,102,61,95,61,62,123,113,61,40,99,61,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,41,40,51,57,41,59,81,61,99,40,51,52,41,59,98,61,99,40,57,54,41,59,99,111,110,115,111,108,101,46,108,111,103,40,81,43,91,46,46,46,96,36,123,81,125,55,54,43,38,59,108,50,58,54,45,38,111,64,36,123,113,125,36,123,113,43,113,125,114,112,112,62,111,60,100,101,102,32,110,40,120,41,58,103,108,111,98,97,108,32,108,59,114,61,112,43,112,43,102,43,70,43,80,43,113,43,40,112,43,80,41,42,40,108,45,120,41,43,81,43,80,32,105,102,32,120,60,108,32,101,108,115,101,32,112,43,112,43,102,43,70,43,80,43,40,112,43,80,41,42,40,120,45,108,41,43,80,59,108,61,120,59,114,101,116,117,114,110,32,114,59,39,39,97,39,39,112,61,99,104,114,40,52,48,41,59,80,61,99,104,114,40,52,49,41,59,113,61,99,104,114,40,57,49,41,59,81,61,99,104,114,40,57,51,41,59,102,61,99,104,114,40,49,50,51,41,59,70,61,99,104,114,40,49,50,53,41,59,108,61,52,59,112,114,105,110,116,32,112,43,112,43,112,43,112,43,112,43,112,43,80,43,112,43,80,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,112,43,80,43,80,43,102,43,70,43,80,43,102,43,70,43,80,44,109,97,112,40,110,44,109,97,112,40,108,97,109,98,100,97,32,120,58,111,114,100,40,120,41,45,52,56,44,115,116,114,40,41,46,106,111,105,110,40,109,97,112,40,108,97,109,98,100,97,32,99,58,36,123,98,125,54,48,48,36,123,98,125,43,40,115,116,114,40,99,45,57,57,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,57,57,53,48,48,36,123,98,125,46,122,102,105,108,108,40,49,48,41,32,105,102,32,99,62,57,57,32,101,108,115,101,32,115,116,114,40,99,41,46,122,102,105,108,108,40,50,41,43,36,123,98,125,53,48,48,36,123,98,125,41,44,91,96,43,91,46,46,46,96,40,102,61,36,123,102,125,41,40,41,96,93,46,109,97,112,40,99,61,62,99,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,96,93,41,41,91,58,58,45,49,93,43,36,123,98,125,57,57,57,57,54,36,123,98,125,41,41,44,36,123,91,46,46,46,39,112,112,112,112,112,112,112,80,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,112,80,80,102,70,80,112,112,80,112,80,80,102,70,112,80,80,39,93,46,106,111,105,110,96,43,96,125,36,123,113,125,96,93,46,109,97,112,40,115,61,62,99,40,52,51,41,46,114,101,112,101,97,116,40,115,46,99,104,97,114,67,111,100,101,65,116,40,41,41,43,99,40,52,54,41,41,46,106,111,105,110,40,41,46,109,97,116,99,104,40,47,46,123,49,44,50,53,51,125,47,103,41,46,106,111,105,110,40,99,40,49,48,41,43,81,41,41,125,41,40,41]))[::-1]+`99996`)),p+p+p+p+p+p+p+P+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+p+P+P+f+F+P+p+p+P+p+P+P+f+F+p+P+P

Try it online!

Python generates the brain-flak somewhat optimized, reusing the previous item on the stack, because otherwise the brain-flak code would be around a megabyte..

Brain-Flak

Try it online!

4

3.699996004050060003000009950060061500600955006006150060062500600240000099500600140000099500600615006004050060099500600615006008350060017000009950060015000009950060006000009950060011000009950060004000009950060046500600030000099500600150000099500600120000099500600100000099500600675006000500000995006009750060015000009950060067500600120000099500600010000099500600020000099500600415006004050060051500600575006004150060059500600815006006150060099500600405006005150060052500600415006005950060098500600615006009950060040500600575006005450060041500600595006009950060012000009950060011000009950060016000009950060012000009950060009000009950060002000009950060046500600090000099500600120000099500600040000099500600405006008150060043500600915006004650060046500600465006009650060036500600240000099500600815006002600000995006005550060054500600435006003850060059500600090000099500600505006005850060054500600455006003850060012000009950060064500600365006002400000995006001400000995006002600000995006003650060024000009950060014000009950060043500600140000099500600260000099500600150000099500600130000099500600130000099500600625006001200000995006006050060001000009950060002000009950060003000009950060032500600110000099500600405006002100000995006004150060058500600040000099500600090000099500600120000099500600985006009750060009000009950060032500600090000099500600595006001500000995006006150060013000009950060043500600130000099500600435006000300000995006004350060070500600435006008050060043500600140000099500600435006004050060013000009950060043500600805006004150060042500600405006000900000995006004550060021000009950060041500600435006008150060043500600805006003250060006000009950060003000009950060032500600210000099500600605006000900000995006003250060002000009950060009000009950060016000009950060002000009950060032500600130000099500600435006001300000995006004350060003000009950060043500600705006004350060080500600435006004050060013000009950060043500600805006004150060042500600405006002100000995006004550060009000009950060041500600435006008050060059500600090000099500600615006002100000995006005950060015000009950060002000009950060017000009950060018000009950060015000009950060011000009950060032500600150000099500600595006003950060039500600975006003950060039500600130000099500600615006009950060005000009950060015000009950060040500600525006004850060041500600595006008050060061500600995006000500000995006001500000995006004050060052500600495006004150060059500600140000099500600615006009950060005000009950060015000009950060040500600575006004950060041500600595006008150060061500600995006000500000995006001500000995006004050060057500600515006004150060059500600030000099500600615006009950060005000009950060015000009950060040500600495006005050060051500600415006005950060070500600615006009950060005000009950060015000009950060040500600495006005050060053500600415006005950060009000009950060061500600525006005950060013000009950060015000009950060006000009950060011000009950060017000009950060032500600130000099500600435006001300000995006004350060013000009950060043500600130000099500600435006001300000995006004350060013000009950060043500600805006004350060013000009950060043500600805006004350060013000009950060043500600805006004350060080500600435006000300000995006004350060070500600435006008050060043500600030000099500600435006007050060043500600130000099500600435006008050060043500600805006004350060003000009950060043500600705006004350060080500600435006000300000995006004350060070500600435006008050060044500600100000099500600975006001300000995006004050060011000009950060044500600100000099500600975006001300000995006004050060009000009950060097500600100000099500600985006000100000995006009750060032500600210000099500600585006001200000995006001500000995006000100000995006004050060021000009950060041500600455006005250060056500600445006001600000995006001700000995006001500000995006004050060041500600465006000700000995006001200000995006000600000995006001100000995006004050060010000009950060097500600130000099500600405006000900000995006009750060010000009950060098500600010000099500600975006003250060099500600585006003650060024000009950060098500600260000099500600545006004850060048500600365006002400000995006009850060026000009950060043500600405006001600000995006001700000995006001500000995006004050060099500600455006005750060057500600415006004650060023000009950060003000009950060006000009950060009000009950060009000009950060040500600505006004150060043500600365006002400000995006009850060026000009950060057500600575006005350060048500600485006003650060024000009950060098500600260000099500600465006002300000995006000300000995006000600000995006000900000995006000900000995006004050060049500600485006004150060032500600060000099500600030000099500600325006009950060062500600575006005750060032500600020000099500600090000099500600160000099500600020000099500600325006001600000995006001700000995006001500000995006004050060099500600415006004650060023000009950060003000009950060006000009950060009000009950060009000009950060040500600505006004150060043500600365006002400000995006009850060026000009950060053500600485006004850060036500600240000099500600985006002600000995006004150060044500600915006009650060043500600915006004650060046500600465006009650060040500600030000099500600615006003650060024000009950060003000009950060026000009950060041500600405006004150060096500600935006004650060010000009950060097500600130000099500600405006009950060061500600625006009950060046500600995006000500000995006009750060015000009950060067500600120000099500600010000099500600020000099500600655006001700000995006004050060041500600415006004350060096500600935006004150060041500600915006005850060058500600455006004950060093500600435006003650060024000009950060098500600260000099500600575006005750060057500600575006005450060036500600240000099500600985006002600000995006004150060041500600445006003650060024000009950060091500600465006004650060046500600395006001300000995006001300000995006001300000995006001300000995006001300000995006001300000995006001300000995006008050060013000009950060080500600805006000300000995006007050060013000009950060080500600805006000300000995006007050060013000009950060080500600805006000300000995006007050060013000009950060080500600805006000300000995006007050060080500600130000099500600130000099500600805006001300000995006008050060080500600030000099500600705006001300000995006008050060080500600395006009350060046500600070000099500600120000099500600060000099500600110000099500600965006004350060096500600260000099500600365006002400000995006001400000995006002600000995006009650060093500600465006001000000995006009750060013000009950060040500600160000099500600615006006250060099500600405006005250060051500600415006004650060015000009950060002000009950060013000009950060002000009950060097500600170000099500600405006001600000995006004650060099500600050000099500600975006001500000995006006750060012000009950060001000009950060002000009950060065500600170000099500600405006004150060041500600435006009950060040500600525006005450060041500600415006004650060007000009950060012000009950060006000009950060011000009950060040500600415006004650060010000009950060097500600170000099500600995006000500000995006004050060047500600465006002400000995006004950060044500600505006005350060051500600260000099500600475006000400000995006004150060046500600070000099500600120000099500600060000099500600110000099500600405006009950060040500600495006004850060041500600435006008150060041500600415006002600000995006004150060040500600415004

Try it online!

dzaima

Posted 2018-08-09T23:38:31.543

Reputation: 19 048

4

4. ><> → JavaScript → Python 2 → Foo

><>

'rpp>o<(f=_=>console.log(`print(${String.fromCharCode(39,34,92,39)}rpp>o<(f=${f})()${String.fromCharCode(34,39)})`))()

Try it online!

I've added the classic wrapping string literal, appending 'rpp>o< to the start, and editing it into the center part too.

JavaScript (Node.js)

(f=_=>console.log(`print(${(a=String.fromCharCode)(39,34,92,39)}rpp>o<(f=${f})()${a(34,39)})`))()

Try it online!

I've shortened the String.fromCharCode part as per comments on the last answer. I know this challenge isn't actually code-golf, but it makes me feel better.

Python 2

print('"\'rpp>o<(f=_=>console.log(`print(${(a=String.fromCharCode)(39,34,92,39)}rpp>o<(f=${f})()${a(34,39)})`))()"')

Try it online!

Added the \' for the start of the ><> quine.

Foo

"'rpp>o<(f=_=>console.log(`print(${(a=String.fromCharCode)(39,34,92,39)}rpp>o<(f=${f})()${a(34,39)})`))()"

Try it online!

Jo King

Posted 2018-08-09T23:38:31.543

Reputation: 38 234

4

6. ><> → JavaScript → brainfuck → Python 2 → Brain-Flak → Foo

Obligatory Brain-Flak answer.

><>

'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log([...`print map(lambda x:${q}(${q}+ord(x)*${q}()${q}+${q})${q},${q+Q+s+q}rpp>o<(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join())})()

Try it online!

JavaScript (Node.js)

(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log([...`print map(lambda x:${q}(${q}+ord(x)*${q}()${q}+${q})${q},${q+Q+s+q}rpp>o<(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join())})()

Try it online!

brainfuck

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.

Try it online!

Python 2

print map(lambda x:'('+ord(x)*'()'+')','"\'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log([...`print map(lambda x:${q}(${q}+ord(x)*${q}()${q}+${q})${q},${q+Q+s+q}rpp>o<(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join())})()"'),'{({}<>)<>}<>'

Try it online!

Brain-Flak

Try it online!

I've excluded the code since it's 41568 bytes and reaches the character limit of the answer. The code is similar to the brainfuck code and is in the format:

[
  '( ()*byte value )', Repeated for each character
] '{({}<>)<>}<>'      To reverse the stack

Foo

"'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log([...`print map(lambda x:${q}(${q}+ord(x)*${q}()${q}+${q})${q},${q+Q+s+q}rpp>o<(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join())})()"

Try it online!

Jo King

Posted 2018-08-09T23:38:31.543

Reputation: 38 234

4

7. ><> → JavaScript → RAD → brainfuck → Python 2 → Brain-Flak → Foo

><>

'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:${q}(${q}+ord(x)*${q}()${q}+${q})${q},${q+Q+s+q}rpp>o<(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()

Try it online!

JavaScript

(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:${q}(${q}+ord(x)*${q}()${q}+${q})${q},${q+Q+s+q}rpp>o<(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()

Try it online!

RAD

'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.'

Try it online!

brainfuck

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.,+++++++++++++++++++++++++++++++++++++++.

Try it online!

Python 2

print map(lambda x:'('+ord(x)*'()'+')','"\'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:${q}(${q}+ord(x)*${q}()${q}+${q})${q},${q+Q+s+q}rpp>o<(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()"'),'{({}<>)<>}<>'

Try it online!

Brain-Flak

Try it online!

Foo

"'rpp>o<(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:${q}(${q}+ord(x)*${q}()${q}+${q})${q},${q+Q+s+q}rpp>o<(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()"

Try it online!

dzaima

Posted 2018-08-09T23:38:31.543

Reputation: 19 048

4

8. ><> → Wumpus → JavaScript → RAD → brainfuck → Python 2 → Brain-Flak → Foo

Adding in another 2D language, Wumpus.

><>

'rppp:1->o#13&;l2:6-&o@(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:(ord(x)*${q}()${q},),${q+Q+s+q}rppp:1->o#13&;l2:6-&o@${Q+s}n${Q}(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()

Try it online!

This now prints an extra " before the Wumpus code.

Wumpus

"#13&;l2:6-&o@(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:(ord(x)*${q}()${q},),${q+Q+s+q}rppp:1->o#13&;l2:6-&o@${Q+s}n${Q}(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()

Try it online!

Similar to the ><> quine, this wraps a string literal around the code and printsonly the javascript section

JavaScript (Node.js)

(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:(ord(x)*${q}()${q},),${q+Q+s+q}rppp:1->o#13&;l2:6-&o@${Q+s}n${Q}(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()

Try it online!

RAD

Try it online!

I'm excluding very long sections of code from the chain, so as to not fill up the answer.

brainfuck

Try it online!

Python 2

print map(lambda x:(ord(x)*'()',),'"\'rppp:1->o#13&;l2:6-&o@"\n"(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:(ord(x)*${q}()${q},),${q+Q+s+q}rppp:1->o#13&;l2:6-&o@${Q+s}n${Q}(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()"'),'{({}<>)<>}<>'

Try it online!

Brain-Flak

Try it online!

Foo

"'rppp:1->o#13&;l2:6-&o@"
"(f=_=>{q=(c=String.fromCharCode)(39);Q=c(34);s=c(92);console.log(q+[...`print map(lambda x:(ord(x)*${q}()${q},),${q+Q+s+q}rppp:1->o#13&;l2:6-&o@${Q+s}n${Q}(f=${f})()${Q+q}),${q}{({}<>)<>}<>${q}`].map(s=>c(43).repeat(s.charCodeAt())+c(46)).join()+q)})()"

Try it online!

This was actually the most annoying part of the code. Foo only supports string literals of 254 length for some reason, so I had to golf a bit and split up the Javascript from the 2D code to keep it short. The next person will probably have to split up the Javascript.

Jo King

Posted 2018-08-09T23:38:31.543

Reputation: 38 234