#include <stdio.h>

int main(void)
{
    char[] s = "12345";
    long n = strtol(s, NULL, 10);
    printf("%ld\n", n);
    return 0;
}