#include <stdio.h>
#include <stdlib.h>
int main()
{
int n;
if(scanf("%d", &n) != 1) return 0;
while(1)
{
printf("%d\n%d", n*2, n/2);
if(scanf("%d", &n) != 1)
break;
printf("\n\n");
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCkKewogICAgaW50IG47CiAgICBpZihzY2FuZigiJWQiLCAmbikgIT0gMSkgcmV0dXJuIDA7IAogICAgCiAgICB3aGlsZSgxKQogICAgewogICAgICAgIHByaW50ZigiJWRcbiVkIiwgbioyLCBuLzIpOyAKICAgICAgICAKICAgICAgIAogICAgICAgIGlmKHNjYW5mKCIlZCIsICZuKSAhPSAxKSAKICAgICAgICAgICAgYnJlYWs7IAogICAgICAgIAogIAogICAgICAgIHByaW50ZigiXG5cbiIpOwogICAgfQoKICAgIHJldHVybiAwOwp9