#include <stdio.h> int main() { unsigned long long b, c; scanf("%*llu,%llu,...,%llu", &b, &c); printf("%llu\n", c - b - 1); return 0; }