 
#include<iostream>
#include<string>
#include <cmath>
using namespace std;


//function that finds which yardage bracket a given play should be placed in
int yardage(double yards){

  if(yards<=9.0){
    return 0;
  }
  else if(yards<=19.0){
    return 1;
  }
  else if(yards<=29.0){
    return 2;
  }
  else if(yards<=39.0){
    return 3;
  }
  else if(yards<=49.0){
    return 4;
  }
  else if(yards<=59.0){
    return 5;
  }
  else if(yards<=69.0){
    return 6;
  }
  else if(yards<=79.0){
    return 7;
  }
  else if(yards<=89.0){
    return 8;
  }
  else {
    return 9;
  }



}




int main(){

  string play,dir;
  double yard;
  double run=0, pass=0;
  double left=0, right=0,middle=0;
  double yards[10];
  double percentForYards[10];
  int k;
  double totalplays=0;
  double percentOfRun, percentOfPass, percentToRight,percentToMiddle,percentToLeft;

  //initializes two arrays
  for(int i=0;i<10;i++){
    yards[i]=0;
    percentForYards[i]=0;
  }


  while (cin >> play >> dir >> yard){
    

    //the following totals up all the runs, passes, and directions
    if(play == "Run,"){
      run=run+1;
    }
    else{
      pass=pass+1;
    }
     

    if(dir == "Left,"){
      left=left+1;
    }
    else if(dir == "Right,"){
      right=right+1;
    }
    else{
      middle=middle+1;

    }
    //finds what yard bracket each play goes in
     k =  yardage(yard);
     yards[k]= yards[k]+1;
     totalplays=totalplays+1;

  }
  //determines percentages
  percentOfRun = (run/totalplays);
  percentOfPass = (pass/totalplays);
  percentToRight = (right/totalplays);
  percentToMiddle = (middle/totalplays);
  percentToLeft = (left/totalplays);

  for(int y=0;y<10;y++){
    percentForYards[y] = yards[y]/totalplays;
  }




  //displays the chart
  cout << "Play Type:" << endl;
  cout << "    Run     |";
  int j, g;

  for(j=0; j<(ceil)(percentOfRun*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  cout << "    Pass    |";
  for(j=0; j<(ceil)(percentOfPass*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl << endl;
  



  cout << "Direction:" << endl;
  cout << "    Left    |";
    for(j=0; j<(ceil)(percentToLeft*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  cout << "    Middle  |";
  for(j=0; j<(ceil)(percentToMiddle*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  cout << "    Right   |";
  for(j=0; j<(ceil)(percentToRight*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl << endl;




  cout <<"Yardage:" << endl;
  cout << "    00 - 09 |";
  for(j=0; j<(ceil)(percentForYards[0]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;



  cout << "    10 - 19 |";
  for(j=0; j<(ceil)(percentForYards[1]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  




  cout << "    20 - 29 |";
  for(j=0; j<(ceil)(percentForYards[2]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  




  cout << "    30 - 39 |";
  for(j=0; j<(ceil)(percentForYards[3]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  



  cout << "    40 - 49 |";
  for(j=0; j<(ceil)(percentForYards[4]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;






  cout << "    50 - 59 |";
  for(j=0; j<(ceil)(percentForYards[5]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
   






  cout << "    60 - 69 |";
  for(j=0; j<(ceil)(percentForYards[6]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  



  cout << "    70 - 79 |";
  for(j=0; j<(ceil)(percentForYards[7]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  




  cout << "    80 - 89 |";
  for(j=0; j<(ceil)(percentForYards[8]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|"<<endl;
  





  cout << "    90 - 99 |";
  for(j=0; j<(ceil)(percentForYards[9]*60); j++){
    cout <<"x";
  }
  for(g=j;g<60;g++){
    cout << " ";
  }
  cout<<"|" << endl;







  return 0;

}

