Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- int a, b, c;
- cin >> a >> b >> c;
- if ((a == 5 || a == 7) && (b== 5 || b == 7) && (c == 5 || c == 7) && a+b+c == 17) {
- cout << "YES\n";
- } else {
- cout << "NO\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment