#include<iostream>
#include<iomanip>
using namespace std;
void invert2(int x)
{
int num,flag;
flag=x%2;
num=x/2;
if(num>0)
{
invert2(num);
}
cout<<flag;
}
void invert8(int x)
{
int num,flag;
flag=x%8;
num=x/8;
if(num>0)
{
invert8(num);
}
cout<<flag;
}
int main()
{
int a1,a2,a3;
float b1;
cout<<"输入三个整数一个实数:"<<endl;
cin>> a1>>a2>>a3>>b1;
cout<<"a1="<<setw(5)<<a1<<",a2=";
invert2(a2);
cout<<",a3=";
invert8(a3);
cout<<endl;
cout<<"b1="<<b1;
return 0;
}