#include <iostream>
#include <string>
#include <numeric>
using namespace std;

int main() {
	const char* arr[]{"forward ", "50 ", "back ", "20"};
	const string check = accumulate(cbegin(arr), cend(arr), string());
	
	cout << check;
}