fun main(arr: Array<String>) {
    val s = readLine()!!
    var ans = 0
    for(i in (1 until s.length / 2)) {
        if(s.startsWith(s.take(i) + s.take(i))) {
            ans = i
        }
    }
    println(ans*2)
}

