Enjoyable Entree
면접 대비시간 제한1초메모리 제한1024 MB
n일째 피보나치 수프에서 두 기본 수프가 차지하는 비율을 백분율로 구한다. 각 날의 수프는 전날과 전전날 수프를 같은 양으로 섞어 만든다.
문제
For many days now, the canteen in Hilbert's Hotel has been offering its famous Fibonacci Soup. Today is the th day that they offer the soup, and the recipe changes every day:
- On the first day, it is a -tato soup, made from a blend of local potato varieties, and served with onion strips and celery.
- On the second day, it is a -mato soup, consisting of puréed tomatoes, together with carrots, onions, garlic, and basil leaves on top.
- On every day after that, the soup is made from two ingredients, the soup of the previous day and the soup of the day before that, mixed together in equal parts.
Find the composition of today's Fibonacci Soup.
입력
The input consists of:
- One line with a single integer (), the current day.
출력
Output two real numbers and (), giving the percentages of -tato soup and -mato soup in the th day's Fibonacci soup. Your answer will be accepted if the absolute or relative error is at most .