#include <iostream>
#include <string>
#include <iomanip>
#include <array>
int main()
{
std::array<std::string, 7> fields = {"Name ", "Hours worked", "Pay rate",
"Gross Pay", "Social Security", "Income Tax", "Net Pay"};
std::cout << std::left;
for(const auto& f: fields)
std::cout << std::setw(f.length() + 2) << f;
std::cout << std::right << std::setfill('-') << std:: endl;
for(const auto& f: fields)
std::cout << std::setw(f.length() + 2) << " ";
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPGFycmF5PgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OmFycmF5PHN0ZDo6c3RyaW5nLCA3PiBmaWVsZHMgPSB7Ik5hbWUgICAgICAiLCAiSG91cnMgd29ya2VkIiwgIlBheSByYXRlIiwKICAgICAgICAgICAgICAgICAgICAgICAgIkdyb3NzIFBheSIsICJTb2NpYWwgU2VjdXJpdHkiLCAiSW5jb21lIFRheCIsICJOZXQgUGF5In07CiAgICBzdGQ6OmNvdXQgPDwgc3RkOjpsZWZ0OwogICAgZm9yKGNvbnN0IGF1dG8mIGY6IGZpZWxkcykKICAgICAgICBzdGQ6OmNvdXQgPDwgc3RkOjpzZXR3KGYubGVuZ3RoKCkgKyAyKSA8PCBmOwogICAgc3RkOjpjb3V0IDw8IHN0ZDo6cmlnaHQgPDwgc3RkOjpzZXRmaWxsKCctJykgPDwgc3RkOjogZW5kbDsKICAgIGZvcihjb25zdCBhdXRvJiBmOiBmaWVsZHMpCiAgICAgICAgc3RkOjpjb3V0IDw8IHN0ZDo6c2V0dyhmLmxlbmd0aCgpICsgMikgPDwgIiAgIjsKfQo=