#include <iostream>
#include <sstream>
#include <string>
using namespace std;

int main() {
    stringstream test1{"\r\n"},
                 test2{"\r"},
                 test3{"\n"};
    
    string o1, o2, o3;
    getline(test1, o1, '\n');
    getline(test2, o2, '\n');
    getline(test3, o3, '\n');
    
    cout << o1.size() << endl
         << o2.size() << endl
         << o3.size() << endl;
    
    return 0;
}