fork download
  1. /*
  2. * Author: Geeza
  3.  */
  4.  
  5. #include <bits/stdc++.h>
  6.  
  7. #define ld long double
  8. #define ll long long
  9. #define pb push_back
  10. #define fin(a, n) for(int i = a; i < n; i++)
  11. #define fjn(a, n) for(int j = a; j < n; j++)
  12. #define all(a) a.begin(),a.end()
  13. #define allr(a) a.rbegin(),a.rend()
  14. #define FAST ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr)
  15.  
  16. using namespace std;
  17.  
  18. const double PI = acos(-1);
  19. const int N = 1e4+20;
  20. const ll oo = 0x3f3f3f3f3f3f3f3f;
  21. const int MOD = 1e9+7;
  22.  
  23. string di[] = {"D","L", "U", "R", "UL", "UR", "DL", "DR"};
  24. int dx[] = {+1, +0, +0, -1, -1, -1, +1, +1};
  25. int dy[] = {+0, -1, +1, +0, -1, +1, -1, +1};
  26. char dc[] = {'D', 'L', 'R', 'U'};
  27.  
  28.  
  29. void solve() {
  30. string s; cin >> s;
  31. map<char, ll> mp;
  32. for (auto c : s) {
  33. mp[c]++;
  34. }
  35.  
  36. ll odd = 0;
  37. for (auto [c, f] : mp) {
  38. if (f&1) odd++;
  39. }
  40.  
  41. cout << ((odd == 0||odd&1)? "First\n" : "Second\n");
  42. }
  43.  
  44. int main() {
  45. FAST;
  46. #ifndef ONLINE_JUDGE
  47. freopen("input.txt", "r", stdin);
  48. freopen("output.txt", "w", stdout);
  49. #endif
  50. int tt = 1; //cin >> tt;
  51. while (tt--) {
  52. solve();
  53. //cout << "Case #" << c++ << ": ";
  54. }
  55. return 0;
  56. }
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
First