Cubes - 2
After the New Year, Vitek decided to become a banker and started playing with dice that had numbers, as his future profession required him to skillfully handle numbers and figures. He particularly enjoyed arrangements of dice where the sequence of numbers read the same forwards and backwards. Every morning, upon arriving at kindergarten, Vitek would immediately examine the dice laid out on the floor. If the sequence wasn't a palindrome, he would add some new dice to the right to make it one. What is the minimum number of dice Vitek needs to add to achieve this?
**Input data:** The first line contains the number of dice laid out in front of Vitek, denoted as N (1 ≤ N ≤ 100). The second line contains a sequence of N numbers on the dice, separated by spaces.
**Output data:** The minimum number of dice that need to be added to the right for Vitek.