Online calculator for |-notation

(simplified version)

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. For example 12|(()()). The string on the right of | also can be empty string. For example 12|