#include <bits/stdc++.h> using namespace std; bool isFu(int x){ int ans=0; for(int i=1;i<x;i++){ if(x%i==0)ans+=i; } if(x==ans)return true; else return false; } int main(){ int a,b,fu[]={6,28,496,8128}; while(cin>>a>>b){ for(int i=0;...