Find the coterminal angle on [0, 2π) This challenge is very simple:

Given an angle measure in degrees or radians (your choice), output the angle between 0 and 2π non-inclusive  [0º, 360º) that is coterminal with it. 

Input

A positive or negative angle measure. You can pick if you want to take it in degrees or in radians. 

Output

The angle on [0, 2π) that is coterminal with the input angle. If you take the input in degrees, the output must also be in degrees; if you take it in radians, the output must be in radians too. The coterminal angle is essentially a the angle mod 360°. 

Examples (in degrees)

745 -&gt; 25
1728 -&gt; 288
90 -&gt; 90
0 -&gt; 0
360 -&gt; 0
-50 -&gt; 310
-543.21 -&gt; 176.79
Python 3, 14 bytes



lambda n:n%360


Try it online!