include [HTML_REMOVED]
int main(void)
{
//4652. 纸张尺寸
//9.29
int A_Long = 1189;
int A_wight = 841;
int a;
scanf_s("A%d",&a);
while (a--) {
if (A_Long > A_wight) {
A_Long /= 2;
int tmp = A_Long;
A_Long = A_wight;
A_wight = tmp;
}
else {
int tmp = A_Long;
A_Long = A_wight;
A_wight = tmp;
}
}
printf("%d\n", A_Long);
printf("%d", A_wight);
return 0;
}