int in() { char ch; int a = 0; while((ch = getchar()) == ' ' || ch == ' '); a += ch - '0'; while((ch = getchar()) != ' ' && ch != ' ') { a *= 10; a += ch - '0'; } return a; }