#include <iostream>
using namespace std;
void main()
{
	float g, s;
	char val;
	cout << "Vvedit sumu v grn:\n";
	cin >> g;
	cout << "Vkagit valutu: d - dollars, e - evro, r - derevyani:\n";
	cin >> val;
	switch (val)
	{
	case 'd': s = g / 21; cout << "Vy otrymaete" << s << " dollars" << "\n"; break;
	case 'e': s = g / 23.4; cout << "Vy otrymaete" << s << " evro" << "\n"; break;
	case 'r': s = g / 0.4; cout << "Vy otrymaete" << s << " derevyanysh" << "\n"; break;
	default: cout << "Nekorektna valuta" << "\n";
	}
}