import java.util.Scanner;
public class Main
{
public static void main
(String[] args
) {
StringBuilder sb = new StringBuilder();
int n = s.length(), c = 1;
for(int i=n-1; i>-1; i--)
{
int v = s.charAt(i) - '0' + c;
c = v / 10;
sb.append(v%10);
if(c == 0)
{
if(i > 0) sb.append(new StringBuilder(s.substring(0, i)).reverse());
break;
}
}
if(c == 1) sb.append(1);
System.
out.
println(sb.
reverse().
toString()); }
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwogCnB1YmxpYyBjbGFzcyBNYWluIAp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSAKCXsKICAgIAlTdHJpbmcgcyA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbikubmV4dCgpOwogICAgCVN0cmluZ0J1aWxkZXIgc2IgPSBuZXcgU3RyaW5nQnVpbGRlcigpOwogICAgCWludCBuID0gcy5sZW5ndGgoKSwgYyA9IDE7CiAgICAJZm9yKGludCBpPW4tMTsgaT4tMTsgaS0tKSAKICAgIAl7CiAgICAJCWludCB2ID0gcy5jaGFyQXQoaSkgLSAnMCcgKyBjOwogICAgCQljID0gdiAvIDEwOwogICAgCQlzYi5hcHBlbmQodiUxMCk7CiAgICAJICAgIGlmKGMgPT0gMCkgCiAgICAJICAgIHsKICAgIAkJCWlmKGkgPiAwKSBzYi5hcHBlbmQobmV3IFN0cmluZ0J1aWxkZXIocy5zdWJzdHJpbmcoMCwgaSkpLnJldmVyc2UoKSk7CiAgICAJCQlicmVhazsKICAgIAkJfQogICAgCX0KICAgIAlpZihjID09IDEpIHNiLmFwcGVuZCgxKTsKICAgIAlTeXN0ZW0ub3V0LnByaW50bG4oc2IucmV2ZXJzZSgpLnRvU3RyaW5nKCkpOwoJfQp9