You are given three strings , and each of length consisting of lower case English letters. The difference between the three strings is defined as where and are the absolute differences between ASCII values of the characters at the position in strings and respectively. However, the string can be rotated cyclically (for example the rotations of the string are ). There are a total of possible rotations of a string of length .
Print the maximum and minimum difference of the three strings for all the possible rotations of the string .
Input format
First line: Single integer (the length of the three strings)
Next three lines: Strings and respectively
Output Format:
Print two space-separated integers: the maximum and minimum difference of the three strings for all possible rotations of string .
Constraints
The minimum difference is obtained when the first string is rotated cyclically once while the difference is maximum without any rotation.