#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; int c=0; for(int i=a;i<=b;++i) { if(i%17==0) { c+=i; } }cout<<c<<endl; }