C++ 代码
#include<iostream>
#include<cstring>
#include<vector>
using namespace std;
char c;
int n;
int m;
int main()
{
scanf("%c %d",&c,&n);
int a=1189;
int b=841;
while(n--)
{
a/=2;
if (a <= b)
{
m=a;
a=b;
b=m;
}
}
printf("%d\n",a);
printf("%d\n",b);
}