#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define ALL(g) (g).begin(),(g).end() #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define F(i,j,k) fill(i[0],i[0]+j*j,k) #define P(p) cout<<(p)< vi; typedef vector vl; typedef vector vd; typedef pair pii; typedef pair pll; typedef long long ll; int main(){ int a,b; cin>>a>>b; int n=0; vector c; for(int i=0;i<=a;i++){ for(int j=0;j<=b;j++){ if(i==0&&j==0) continue; int tmp=1*i+5*j; c.push_back(tmp); n++; } } sort(c.begin(),c.end()); c.erase(unique(c.begin(),c.end()),c.end()); for(int i=0;i