-
-
Save sakapon/1b0cc3ec9b9f5efd3c66afda6d7ac750 to your computer and use it in GitHub Desktop.
sumitrust2019 B - Tax Rate (2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class B | |
{ | |
static void Main() | |
{ | |
var n = int.Parse(Console.ReadLine()); | |
var x = Math.Ceiling(n / 1.08); | |
Console.WriteLine((int)(1.08 * x) == n ? $"{x}" : ":("); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment