#include #include #include #include #include #include #include #include #include #define rep(i,j,k) for(int i=j;i #define INF 1000000000 #define MOD 1000000009 #define pb push_back #define mp make_pair typedef long long ll; int dx[4]={0,1,0,-1},dy[4]={1,0,-1,0}; using namespace std; ll gcd(ll a,ll b){ if(a v; int a,b,sum=0; void dfs(int sum,int a,int b){ v.pb(sum); if(a>0)dfs(sum+1,a-1,b); if(b>0)dfs(sum+5,a,b-1); return; } int main() { cin>>a>>b; dfs(0,a,b); Sort(v); v.push_back(-1); rep(i,1,v.size()-1){ if(v[i]!=v[i+1]){ cout<