# [brainfuck](https://esolangs.org/wiki/Brainfuck), 162 bytes ``` >+[+[>+<+<]>]+[,[>[>+<<->-]<[>>>+<<<-]>>>>+<<[<+>-]<<+>>]<<]>>>[-]>>[<+>-]<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>[-]+++++++>[-]<[>+++++++<-]>>[<.[-]>[-]>[-]]<[-.[-]] ``` [Try It Online!](https://tio.run/##LYxdCgMxCITfexVrTyBzEfFhf1pYFtolEPb41iERojOj@da2HN9P385MiItDTCwQ4k8HnSk0zAFq08BQbsK8Oqozde5m7Iqa9b22KKpWHBi3rOC1jKIs/nQ2KC/S5iOOPh6ZV2/v@9f2Pw) outputs `0` for **truthy** and `1` for **falsey** This one was a lot of fun. Not necessary golf-optimal but hey, brainfuck solution :) ## Explanation ``` ; 96 algorithm from esolangs constants ; initialise tape to (1)/96/0/0/0 >+[+[>+<+<]>]+[ ; while(getchar()) ,[> [>+<<->-] <[>>>+<<<-]>>>>+<<[<+>-]<<+>> ; 0/96/(0)/cumulative/length ] << ] ; divmod algorithm from esolangs >>>[-]>>[<+>-] <[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<] ; prepare 0 for output >[-]+++++++>[-]<[>+++++++<-] ; if(sum%length){print 1}else{print 0} >>[<.[-]>[-]>[-]]<[-.[-]]