fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. string s1,s2;
  7. cin>>s1>>s2;
  8. if(s1==s2 && s1 == "fine") cout<<"4"<<"\n";
  9. else if(s1=="sick" && s2 == "fine") cout<<"2"<<"\n";
  10. else if(s2=="sick" && s1 == "fine") cout<<"3"<<"\n";
  11. else cout<<"1"<<"\n";
  12. return 0;
  13. }
Success #stdin #stdout 0s 5276KB
stdin
sick sick
stdout
1