#include <stdio.h> int main() { char str[100] = {0}; long long int a, b, c; while (scanf("%s", str) != EOF) { // printf("%s\n", str); sscanf(str, "%lld,%lld,...,%lld",&a, &b, &c); // printf("%lld\n",c); printf("%lld\n", c-b-1); } re...