/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
System.
out.
println("abcdef".
startsWith("ab")); System.
out.
println("abcdef".
startsWith("cd")); System.
out.
println("abcdef".
startsWith("ef")); System.
out.
println("abcdef".
startsWith("")); System.
out.
println("".
startsWith("abcdef")); System.
out.
println("--------"); System.
out.
println("abcdef".
endsWith("ab")); System.
out.
println("abcdef".
endsWith("cd")); System.
out.
println("abcdef".
endsWith("ef")); System.
out.
println("abcdef".
endsWith("")); System.
out.
println("".
endsWith("abcdef")); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigiYWJjZGVmIi5zdGFydHNXaXRoKCJhYiIpKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oImFiY2RlZiIuc3RhcnRzV2l0aCgiY2QiKSk7CgkJU3lzdGVtLm91dC5wcmludGxuKCJhYmNkZWYiLnN0YXJ0c1dpdGgoImVmIikpOwoJCVN5c3RlbS5vdXQucHJpbnRsbigiYWJjZGVmIi5zdGFydHNXaXRoKCIiKSk7CgkJU3lzdGVtLm91dC5wcmludGxuKCIiLnN0YXJ0c1dpdGgoImFiY2RlZiIpKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oIi0tLS0tLS0tIik7CgkJU3lzdGVtLm91dC5wc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