The package for this problem was not updated by the problem writer or Codeforces administration after we've upgraded the judging servers. To adjust the time limit constraint, a solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then the value 800 ms will be displayed and used to determine the verdict.

The following languages are only available languages for the problems from the contest

Unknown Language Round #3:

- Pike 7.8

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

The problem statement has recently been changed. View the changes.

×
I. Rotation

time limit per test

2 secondsmemory limit per test

64 megabytesinput

standard inputoutput

standard outputEhsan loves geometry! Especially he likes to rotate points!

Given a point in the plane, Ehsan likes to rotate it by *k* degrees (counter-clockwise), around the origin. What is the result of this rotation?

Input

A single integer *k* (0 ≤ *k* < 360) is given in the first line. Two integer numbers *x* and *y* are given in the second line ( - 1390 ≤ *x*, *y* ≤ 1390).

Output

Write two numbers. The result of the rotation. Your answer must have a relative error less than 10^{ - 1}.

Examples

Input

90

1 1

Output

-1.00000000 1.00000000

Input

180

1 1390

Output

-1.00000000 -1390.00000000

Codeforces (c) Copyright 2010-2023 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Feb/05/2023 01:47:34 (i1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|