import java.util.*;
import java.lang.*;
class Main
{
{
System.
out.
println(containsDouble
(a,
'z')); System.
out.
println(containsDouble
(b,
'z')); }
private static boolean containsDouble
(String s,
char letter
) { int firstIndex = s.indexOf(letter);
return firstIndex > -1 && s.indexOf(letter, firstIndex + 1) > -1;
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU3RyaW5nIGEgPSAiemFwcGF6IjsKICAgICAgICBTdHJpbmcgYiA9ICJub3QiOwogICAgICAgIAogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjb250YWluc0RvdWJsZShhLCAneicpKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oY29udGFpbnNEb3VibGUoYiwgJ3onKSk7Cgl9CiAgICAKICAgIHByaXZhdGUgc3RhdGljIGJvb2xlYW4gY29udGFpbnNEb3VibGUoU3RyaW5nIHMsIGNoYXIgbGV0dGVyKSB7CiAgICAgICAgaW50IGZpcnN0SW5kZXggPSBzLmluZGV4T2YobGV0dGVyKTsKCiAgICAgICAgcmV0dXJuIGZpcnN0SW5kZXggPiAtMSAmJiBzLmluZGV4T2YobGV0dGVyLCBmaXJzdEluZGV4ICsgMSkgPiAtMTsKICAgIH0KfQ==