text: #include <iostream>
  
  using namespace std;
  
  string readValue(string mystr, int param)
  {
      string last = mystr.substr(mystr.length()-param);
      string beginning = last;
      string final = beginning + mystr.substr(0, param);
      return final;
  }
  
  void catal(string s1, string s2, string s3)
  {
      int occurance = 0;
      
      string first = "", second = "", third = "", last = "";
  
  
      for (int i = 0; i < s1.length()-s2.length(); i++)
      {
          if (s1.substr(i, s2.length()) == s2)
          {
              occurance += 1;
              cout << i << endl;
              if (occurance == 2)
              {
                  first = s1.substr(0, i);
                  second = s3;
                  third = s1.substr(i+s2.length());
                  last = first + second + third;
              }
          }
      }
      cout << "First is: " << first << endl;
      cout << "Second is :" << second << endl;
      cout << "Third is :" << third << endl;
      cout << "Last is: " << last << endl;
  }
  
  bool bicak (float realNumber) // Question 7
  {
      float fractional = realNumber-int(realNumber);
      if (fractional != 0)
      {
          // cout << "Fractional: " << fractional << " Real Number: " << realNumber << endl;
          return false;
      }
      // cout << "Fractional: " << fractional << " Real Number: " << realNumber << endl;
      return true;
  }
  
  void kasik()
  {
      int sum=0;
      char ch;
  
      while (cin >> ch)
       //or cin.get(ch)
          if (ch >= '0' && ch <= '9')
              sum += ch-'0';
  
      cout << "sum is " << sum << endl;
  
  }
  
  void yarak (string day)
  {
      string day1="Pazartesi", day2="Sali", day3="Carsamba", day4="Persembe", day5="Cuma",
      day6="Cumartesi", day7="Pazar";
      int yil = 0;
  
      cout << "Hangi yildayiz?: "; cin >> yil;
  
      
  
  }
  
  int main()
  {
      string anne = "Bu sinav ne kadar da kolay";
      string s1 = "hatasiz sinav olmaz, hatamla sev beni";
      string s2 = "hata";
      string s3 = "kopya";
      string input = "";
  
      kasik();
  
      // Question 7 BEGINS
      // float fractional_number = 0;
  
      // for (int i = 0; i < 9; i++)
      // {
      //     cin >> fractional_number;
      //     cout << bicak(fractional_number) << endl;
      // }
      // Question 7 ENDS
  
      // QUESTION 6 BEGINS
      // bool isBigger = true;
  
      // cin >> input;
      // while (input != "-1")
      // {
      //     string temp = input;
      //     cin >> input;
      //     string tempo = input;
  
      //     if (temp > tempo)
      //     {
      //         isBigger = false;
      //     }
  
      //     cout << "TEMP: " << temp << " TEMPO: " << tempo << endl;
  
      // }
      //     if (isBigger == true)
      //     {
      //         cout << "List is ordered from small to big" << endl;
      //     }
  
      //     else if (isBigger == false)
      //     {
      //         cout << "List is not ordered." << endl;
      //     }
      // QUESTIOn 6 ENDS
  
      // catal(s1, s2, s3);
      // cout << readValue(anne, 11);
  }