Online calculator for |-notation

Definition of |-notation


On the left of | write a nonzero natural number; on the right of | write a string consisting of pairs of round brackets. Each pair can enclose other pairs. After each right bracket write a digit from 0 to 9. If some pair of brackets is not enclosed in any other then write zero after right bracket of this pair. For example 12|(()2()2)0. It corresponds to the expression 12|(()2()2)0 of given notation. The string on the right of | also can be empty string. For example 12|