Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Globalization;
- namespace SoftUni
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] input = Console.ReadLine().Split();
- int a = int.Parse(input[0]);
- int b = int.Parse(input[1]);
- int c = int.Parse(input[2]);
- bool check = true;
- if ((a + b + c) == 13)
- {
- Console.WriteLine("Yes");
- check = false;
- }
- if ((a + b + (c * -1)) == 13)
- {
- Console.WriteLine("Yes");
- check = false;
- }
- if ((a + (b * -1) + c) == 13)
- {
- Console.WriteLine("Yes");
- check = false;
- }
- if ((a + (b * -1) + (c * -1)) == 13)
- {
- Console.WriteLine("Yes");
- check = false;
- }
- if (((a * -1) + b + c) == 13)
- {
- Console.WriteLine("Yes");
- check = false;
- }
- if (((a * -1) + b + (c * -1)) == 13)
- {
- Console.WriteLine("Yes");
- check = false;
- }
- if (((a * -1) + (b * -1) + c) == 13)
- {
- Console.WriteLine("Yes");
- check = false;
- }
- if (((a * -1) + (b * -1) + (c * -1)) == 13)
- {
- Console.WriteLine("Yes");
- check = false;
- }
- if (check)
- {
- Console.WriteLine("No");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement