>

++++++[>+++++++++++++<-]>.[-] N <
++++++++++++[>++++++++++<-]>---.[-] u <
+++++++++++[>++++++++++<-]>-.[-] m <
++++++++++[>++++++++++<-]>--.[-] b <
++++++++++[>++++++++++<-]>+.[-] e <
++++++[>+++++++++++++++++++<-]>.[-] r <
+++[>++++++++++<-]>++.[-]  <
++++++[>+++++++++++++++++++<-]>++.[-] t <
++++++[>+++++++++++++++++++<-]>---.[-] o <
+++[>++++++++++<-]>++.[-]  <
++++++++++[>++++++++++<-]>-.[-] c <
++++++++[>+++++++++++++<-]>.[-] h <
++++++++++[>++++++++++<-]>+.[-] e <
++++++++++[>++++++++++<-]>-.[-] c <
++++++++[>+++++++++++++<-]>+++.[-] k <
++++++[>++++++++++<-]>--.[-] : <
+++[>++++++++++<-]>++.[-]  <

>>>>>>

Read input
-------------[+++++++++++++>,-------------]
New line
>[-]++++++++++.[-]<

<
[>
Copy item and to beginning
-<------------------------------------------------

[-<[<]<<


+
>>>+[->+]-<]
Beginning
<[<]<<





Copy old
<<[-]<[->+<<+>]>>>




Reset
<<



Times power of 10
[->>[-<+>]<[->++++++++++<]<]



Add 1 to power of 10
Copy old
<[->+<]>
Add1
+[-<+<+>>]<<[->>+<<]>>

<[-]>
[-<+>]




Out of reset
>>

[->+<]

Back to first in list
>>>


+[->+]<<
]
<[-<<<<<+>>>>>]<<<<[-]<


"The number "
>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.[-]<


Print number
[->+>+<<]>>[-<<+>>]<[>+>+<<-]>>[<<+>>-]<>[-]<[>+<[-]]+>[<->-]<[[-]>+++++[<++++++++++>-]<--.[-]]<[>>>>>>>>+<<<<<<<<-]>>>>>>>>[>+<[<<<<<<<+<+>>>>>>>>-]<<<<<<<<[>>>>>>>>+<<<<<<<<-]>>++++++++++<[>->+<[>]>[<+>-]<<[<]>-]>>[<<+>>-]<<>[-]<>+++++[<++++++++++>-]<-->>>>>>>[>]+[<]><<<<<<<-[>>>>>>>[>]<+[<]><<<<<<<-]>>>>>>>[<<<<<<<+<+>>>>>>>>-]<<<<<<<<[>>>>>>>>+<<<<<<<<-]>>++++++++++<[>[->+>+<<]>[-<<-[>]>>>[<[>>>-<<<[-]]>>]<<]>>>+<<[-<<+>>]<<<]>[-]>>>>[<<<<<+>>>>>-]<<<<<>>>>>>>[-]<<<<<<<[>>>>>>>+<<<<<<<-]>>>>>>>]>[-]>[>]<[.[-]<]<<<<<<<<<

<















" took "
 >++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.[-]<























-[+

modulus
[->+>+<<]>>[-<<+>>]++<[->-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]>>[-]<[-<<+>>]<<





conditional
>+
>
<<[
 
 times 3 plus 1
 <
  [->>>>>>>>>>+++<<<<<<<<<<]>>>>>>>>>>+[-<<<<<<<<<<+>>>>>>>>>>]<<<<<<<<<<



 >
 
 x>-]>
[<
 
  <[->>>>>>>>>>+<<<<<<<<<<]
  >>>>>>>>>>
  divide by 2
  >++<[->-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]>[-]>[-<<<+>>>]<<<

  [-<<<<<<<<<<+>>>>>>>>>>]<<<<<<<<<<

  >
 x>->]<<[-]<<+>

-]

print iteration count
<[>+>+<<-]>>[<<+>>-]<>[-]<[>+<[-]]+>[<->-]<[[-]>+++++[<++++++++++>-]<--.[-]]<[>>>>>>>>+<<<<<<<<-]>>>>>>>>[>+<[<<<<<<<+<+>>>>>>>>-]<<<<<<<<[>>>>>>>>+<<<<<<<<-]>>++++++++++<[>->+<[>]>[<+>-]<<[<]>-]>>[<<+>>-]<<>[-]<>+++++[<++++++++++>-]<-->>>>>>>[>]+[<]><<<<<<<-[>>>>>>>[>]<+[<]><<<<<<<-]>>>>>>>[<<<<<<<+<+>>>>>>>>-]<<<<<<<<[>>>>>>>>+<<<<<<<<-]>>++++++++++<[>[->+>+<<]>[-<<-[>]>>>[<[>>>-<<<[-]]>>]<<]>>>+<<[-<<+>>]<<<]>[-]>>>>[<<<<<+>>>>>-]<<<<<>>>>>>>[-]<<<<<<<[>>>>>>>+<<<<<<<-]>>>>>>>]>[-]>[>]<[.[-]<]<<<<<<<<<




" iterations"
 >++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]<


 
New line
>[-]++++++++++.[-]<
