#include<iostream> using namespace std; int main() { int m,n; cin>>m>>n; int S=0; int i=m; while(m<=i&&i<=n){ if(i%17==0){ S+=i; } i+=1; } cout<<S; }