Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Contest80Task1SevenlandNumbers
- {
- static void Main()
- {
- int input = int.Parse(Console.ReadLine());
- input = !((input - 66) % 100 == 0) && (input - 6) % 10 == 0 ? input + 4 : input = (input - 66) % 100 == 0 ? input + 34 : ++input;
- Console.WriteLine(input == 700 ? 1000 : input);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement