object Main extends App {
	val N = scala.io.StdIn.readLine.toList

	def test(x: List[Char]): Boolean = {
		if(x.size % 2 == 1) return false;

		val t = x.size/2

		for(i <- 0 until t){
			if(x(i) != x(t + i)) return false;
		}

		return true;
	}

	def get(x: List[Char]): List[Char] = {
		x match {
			case rest:+r => rest
			case _ => Nil
		}
	}

	var temp = get(N)

	while(!test(temp)){
		temp = get(temp)
	}

	println(temp.size)
}