#include <iostream>
#include <string>
#include <array>
#include <cstring>
 
template<class e, class t, int N>
std::basic_istream<e,t>& operator>>(std::basic_istream<e,t>& in, const e(&str_lit)[N]) {
    std::array<e, N-1> buffer; //get buffer
    in >> std::ws; //skips whitespace
    if (N)        
        in.read(&buffer[0], N-1); //read the rest
    if (strncmp(&buffer[0], str_lit, N-1)) //if it failed
        in.setstate(in.rdstate() | std::ios::badbit); //set the state
    return in;
}
template<class e, class t>
std::basic_istream<e,t>& operator>>(std::basic_istream<e,t>& in, const e& char_lit) {
    e buffer;  //get buffer
    in >> buffer; //read data
    if (buffer != char_lit) //if it failed
        in.setstate(in.rdstate() | std::ios::badbit); //set the state
    return in;
}
//redirect mutable char arrays to their normal function
template<class e, class t, int N>
std::basic_istream<e,t>& operator>>(std::basic_istream<e,t>& in, e(&carray)[N]) {
	return std::operator>>(in, carray);
}
 
int main()
{
        int number;
        char character;
        char buffer[250];
        float thing;
        while (std::cin >> "begin " >> number >> 'a' >> character >> buffer >> thing)
        	std::cout << number << ' ' << character << ' ' << buffer << ' ' << thing << '\n';
        std::cout << "Failed to read";
        return 0;
}