// Justin Almazan
// 6/12/2025
// Solution to Contest 1 Problem: Eye of Sauron
// https://open.kattis.com/problems/eyeofsauron

#include <bits/stdc++.h>
using namespace std;

int main() {
    
    // Get Elrond's drawing as input
    string drawing;
    cin >> drawing;

    // Count the number of vertical bars on the left side
    int left = 0;
    while (drawing[left] == '|') left++;
    
    // We know that following this will be 2 parenthesis, followed
    // by some vertical bars. Use that info to calculate the right side
    int right = int(drawing.size()) - left - 2;

    // If # of bars on the left equals # of bars on the right, it's correct
    if (left == right) cout << "correct" << endl;

    // Otherwise, it needs to be fixed
    else cout << "fix" << endl;
    
    return 0;
}