Driver Code
public static void main ( String args [ ] ) { int L = 1 , R = 50 ; System . out . println ( solve ( R ) - solve ( L - 1 ) ) ; L = 50 ; R = 100 ; System . out . println ( solve ( R ) - solve ( L - 1 ) ) ; } }