include<stdio.h>

include<math.h>

main()
{double a;
int down,up;
scanf("%lf",&a);
down=floor(a);
up=ceil(a);
printf("%d\n%d",down,up);}