In XML, some characters have strictly predefined special meanings. For example, the character "" is used to begin start-tags and end-tags. XML provides mechanisms to include text with such special characters. The text is transformed as follows: each special character is replaced with a predefined entity "". There are five predefined entities: represents "" (less), represents "" (greater), represents "" (ampersand), represents "" (single quote), and represents "" (double quote). Let us call this transformation the function , where is the input string. can be applied to the input several times.
For example, let be "2<3<4". Then will be "2<3<4", and will be "2&lt;3&lt;4".
Write a program that determines the maximum number of XMLEncode-function calls based on the given resulting string .
The single line of the input file contains the string (1 \leq \text{length}(R) \leq 100000). The string may contain characters with ASCII codes from to .
The output file should contain a single integer: the maximum number of XMLEncode-function calls, or if the string can be encoded infinitely.
Example 1