{"raw_statement":[{"iden":"problem statement","content":"Joisino is working as a receptionist at a theater.\nThe theater has $100000$ seats, numbered from $1$ to $100000$.\nAccording to her memo, $N$ groups of audiences have come so far, and the $i$\\-th group occupies the consecutive seats from Seat $l_i$ to Seat $r_i$ (inclusive).\nHow many people are sitting at the theater now?"},{"iden":"constraints","content":"*   $1≤N≤1000$\n*   $1≤l_i≤r_i≤100000$\n*   No seat is occupied by more than one person.\n*   All input values are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$\n$l_1$ $r_1$\n$:$\n$l_N$ $r_N$"},{"iden":"sample input 1","content":"1\n24 30"},{"iden":"sample output 1","content":"7\n\nThere are $7$ people, sitting at Seat $24,25,26,27,28,29$ and $30$."},{"iden":"sample input 2","content":"2\n6 8\n3 3"},{"iden":"sample output 2","content":"4"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}