fork download
  1. //----------//
  2. // FairoozR //
  3. //----------//
  4.  
  5. #include<bits/stdc++.h>
  6. using namespace std;
  7.  
  8. #define ll long long
  9. #define ull unsigned long long
  10. #define fast_in_out ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
  11. #define ln "\n"
  12. #define cyes cout << "YES" << "\n"
  13. #define cno cout << "NO" << "\n"
  14.  
  15. const double EPS = (double) 1e-9;
  16. const double pi = acos(-1);
  17. const int mod = 1000000007;
  18. const int N = (int) 1e5;
  19.  
  20. int main()
  21. {
  22. fast_in_out;
  23. string s;
  24. cin >> s;
  25. if(s == "NSU" || s == "NUS" || s == "USN" || s == "UNS" || s == "SUN" || s == "SNU")
  26. {
  27. cyes;
  28. }
  29. else
  30. {
  31. cno;
  32. }
  33. return 0;
  34. }
  35.  
  36.  
Success #stdin #stdout 0.01s 5548KB
stdin
USN
stdout
YES