var arr = readline() print(strPin(arr)) function strPin(arr){ var n= arr.length var mid = arr.length/2 var result = false for(var i = 0 ; i<mid; i++){ if(n%(i+1)==0){ var subStr = arr.slice(0,i+1) if (subStr.repeat(n/(i+1)) === arr){ result = subStr break } }