import java.util.*;
class task6
{
static public int StringPow
(final String str
) {
int size = str.length();
int pow = 1;
for (int i=1; i<=size/2; i++)
{
if (size % i != 0)
continue;
boolean found = true;
for (int j = i; j < size; j+=i)
{
if (!sub1.equals(sub2))
{
found = false;
break;
}
}
if (found)
{
pow = (size/i);
break;
}
}
return pow;
}
static public void main
(String[] argv
) {
Scanner in
= new Scanner
(System.
in); while (in.hasNext())
{
str = in.nextLine();
System.
out.
println(StringPow
(str
)); }
in.close();
}
}
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgdGFzazYgCnsKCXN0YXRpYyBwdWJsaWMgaW50IFN0cmluZ1BvdyhmaW5hbCBTdHJpbmcgc3RyKQoJewoJCWludCBzaXplID0gc3RyLmxlbmd0aCgpOwoJCWludCBwb3cgPSAxOwoJCWZvciAoaW50IGk9MTsgaTw9c2l6ZS8yOyBpKyspCgkJewoJCQlpZiAoc2l6ZSAlIGkgIT0gMCkKCQkJCWNvbnRpbnVlOwoJCQlTdHJpbmcgc3ViMSA9IG5ldyBTdHJpbmcoc3RyLnN1YnN0cmluZygwLCBpKSk7CgkJCWJvb2xlYW4gZm91bmQgPSB0cnVlOwoJCQlmb3IgKGludCBqID0gaTsgaiA8IHNpemU7IGorPWkpCgkJCXsKCQkJCVN0cmluZyBzdWIyID0gbmV3IFN0cmluZyhzdHIuc3Vic3RyaW5nKGosIGoraSkpOwoJCQkJaWYgKCFzdWIxLmVxdWFscyhzdWIyKSkKCQkJCXsKCQkJCQlmb3VuZCA9IGZhbHNlOwoJCQkJCWJyZWFrOwoJCQkJfQoJCQl9CgkJCWlmIChmb3VuZCkKCQkJewoJCQkJcG93ID0gKHNpemUvaSk7CgkJCQlicmVhazsKCQkJfQoJCX0KCQlyZXR1cm4gcG93OwoJfQoJCglzdGF0aWMgcHVibGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJndikKCXsKCQlTdHJpbmcgc3RyOwoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCXdoaWxlIChpbi5oYXNOZXh0KCkpCgkJewoJCQlzdHIgPSBpbi5uZXh0TGluZSgpOwoJCQlTeXN0ZW0ub3V0LnByaW50bG4oU3RyaW5nUG93KHN0cikpOwoJCX0KCQlpbi5jbG9zZSgpOwoJfQp9