class Program {
public static void main
(String[] args
) { System.
out.
println(Right
("OlaMundo",
3)); }
if (text.length() <= length) return null;
return text.substring(text.length() - length);
}
}
//https://pt.stackoverflow.com/q/349464/101
Y2xhc3MgUHJvZ3JhbSB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgewoJCVN5c3RlbS5vdXQucHJpbnRsbihSaWdodCgiT2xhTXVuZG8iLCAzKSk7Cgl9CgoJcHVibGljIHN0YXRpYyBTdHJpbmcgUmlnaHQoU3RyaW5nIHRleHQsIGludCBsZW5ndGgpIHsKCQlpZiAodGV4dC5sZW5ndGgoKSA8PSBsZW5ndGgpIHJldHVybiBudWxsOwoJCXJldHVybiB0ZXh0LnN1YnN0cmluZyh0ZXh0Lmxlbmd0aCgpIC0gbGVuZ3RoKTsKCX0KfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMzQ5NDY0LzEwMQ==