#include <iostream>
using namespace std;

void printTemperatures(double temps[]) {
    cout << "Температура 2-го часа: " << temps[1] << endl;
    cout << "Температура 6-го часа: " << temps[5] << endl;
}

int main() {
    double temps[6] = {36.2, 37.0, 36.8, 37.2, 36.5, 36.9};
    
    printTemperatures(temps);
    
    temps[1] = 38.5;
    
    printTemperatures(temps);
    
    return 0;
}