#include <iostream>
#include <iomanip>
using namespace std;

int main() {
    float t; string type;
    cin >> t;
    cin.ignore();
    getline(cin, type);
     if (type == "Celsius to Fahrenheit")
        cout << fixed << setprecision(2)
    else if (type == "Fahrenheit to Celsius")
        cout << fixed << setprescision(2);
    else
        cout << "Invalid input"
}