Skip to main content
4 of 9
deleted 84 characters in body
Mitch Schwartz
  • 5.9k
  • 1
  • 28
  • 26

Brainfuck, 205 bytes

++++++++++[-[<<+>>-]+<<]>,[<[-]-[>-<-----]>++[-[>>+<<-]>>]>+++[<<],>,]<[,>>---[> >]<<+++[<<]]>->>->>>>->>>>>>-[<[<<]<,++++++++++[.<]<++++[>++++++++<-]>[>]--[>>]< +[++[>+++++++++++<-]<+]>>[++.,>-.>]<[--<++]>] 

Formatted:

++++++++++ [ -[<<+>>-] +<< ] >, [ <[-] -[>-<-----] >++ [ -[>>+<<-] >> ] >+++[<<] ,>, ] < [ ,>>---[>>] <<+++[<<] ] >->>->>>>->>>>>>- [ <[<<] <,++++++++++[.<] <++++[>++++++++<-] >[>] --[>>] <+ [ ++[>+++++++++++<-] <+ ] >>[++.,>-.>] <[--<++] > ] 

Expects input without a trailing newline.

Try it online.

Mitch Schwartz
  • 5.9k
  • 1
  • 28
  • 26