#include <iostream>
using namespace std;

int
main(int argc, char *argv[])
{
  string Tag;
  string Uhrzeit;
  string hoehe_2m;
  string hoehe_30m;
  string tiefe_2cm;
  string tiefe_5cm;
  string tiefe_10cm;
  string tiefe_20cm;
  string tiefe_50cm;
  string line;
  int i;
  int n;
  int z;
  n=0;
  z=0;
  while (getline(cin, line)) {
    n++;
    z++;
    if (n == 1)
      for (i=0; i<10; i++)
        Tag += line[i];
    if (n == 2) {
      for (i=0; i<5; i++)
        Uhrzeit += line[i];
      Uhrzeit += ":00"; 
    } 
    if (n == 75) {
      i=45;
      while ( i<50 ) {
        switch ( line[i] ) {
          case '>':
          case '&':
          case 'd':
          case 'e':
            i++;
            break;
          default:
            hoehe_2m += line[i];
            i++;
        }  // switch
      } // while
    } // if
    if (n == 75) {
      i=64;
      while ( i<70 ) {
        switch ( line[i] ) {
          case '>':
          case '&':
          case 'd':
          case 'e':
            i++;
            break;
          default:
            hoehe_30m += line[i];
            i++;
        }  // switch
      } // while
    } // if
    
    if ( (n > 124) && (z == n) ) {
      if ( line[0] == '<' &&
           line[1] == 't' &&
           line[2] == 'a' &&
           line[3] == 'b' &&
           line[4] == 'l' &&
           line[5] == 'e' )
      z = 125;
    }
    
    if (z == 129) {
      i=4;
      while ( i<10 ) {
        switch ( line[i] ) {
          case '>':
          case '&':
          case 'd':
          case 'e':
            i++;
            break;
          default:
            tiefe_50cm += line[i];
            i++;
        }  // switch
      } // while
    } // if
    
    if (z == 130) {
      i=4;
      while ( i<10 ) {
        switch ( line[i] ) {
          case '>':
          case '&':
          case 'd':
          case 'e':
            i++;
            break;
          default:
            tiefe_20cm += line[i];
            i++;
        }  // switch
      } // while
    } // if
    
    if (z == 131) {
      i=4;
      while ( i<10 ) {
        switch ( line[i] ) {
          case '>':
          case '&':
          case 'd':
          case 'e':
            i++;
            break;
          default:
            tiefe_10cm += line[i];
            i++;
        }  // switch
      } // while
    } // if
    
    if (z == 132) {
      i=4;
      while ( i<10 ) {
        switch ( line[i] ) {
          case '>':
          case '&':
          case 'd':
          case 'e':
            i++;
            break;
          default:
            tiefe_5cm += line[i];
            i++;
        }  // switch
      } // while
    } // if
    
    if (z == 133) {
      i=4;
      while ( i<10 ) {
        switch ( line[i] ) {
          case '>':
          case '&':
          case 'd':
          case 'e':
            i++;
            break;
          default:
            tiefe_2cm += line[i];
            i++;
        }  // switch
      } // while
    } // if
    
  } // while (getline(cin, line)) 

  cout << "INSERT INTO Temperatur_Grad_Celsius" << endl;
  cout << "( Tag, Uhrzeit," << endl; 
  cout << "Hoehe_30m," << endl; 
  cout << "Hoehe_2m," << endl;
  cout << "Tiefe_2cm," << endl;
  cout << "Tiefe_5cm," << endl;
  cout << "Tiefe_10cm," << endl;
  cout << "Tiefe_20cm," << endl;
  cout << "Tiefe_50cm ) VALUES" << endl;
  cout << "( '" << Tag << "', '" << Uhrzeit << "'," << endl;
  cout << hoehe_30m <<  ", "
       << hoehe_2m  <<  ", "
       << tiefe_2cm <<  ", "
       << tiefe_5cm <<  ", "
       << tiefe_10cm << ", "
       << tiefe_20cm << ", "
       << tiefe_50cm << " );" << endl;
  return 0;
}
