#include inline int isdigit(int c) { return (c>='0' && c<='9'); }