#include <iostream>
#include <cmath>
int main()
{
bool pixels[40][80] = {};
for(unsigned i = 0; i < 80; ++i)
{
double pos = std::sin(2*3.1415926/80*i)*15+20;
pixels[unsigned(pos)][i] = true;
}
for(unsigned r = 0; r < 40; ++r)
{
for(unsigned c = 0; c < 80; ++c)
{
std::cout << (pixels[r][c] ? '#' : ' ');
}
std::cout << std::endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CgppbnQgbWFpbigpCnsKICAgIGJvb2wgcGl4ZWxzWzQwXVs4MF0gPSB7fTsKICAgIGZvcih1bnNpZ25lZCBpID0gMDsgaSA8IDgwOyArK2kpCiAgICB7CiAgICAgICAgZG91YmxlIHBvcyA9IHN0ZDo6c2luKDIqMy4xNDE1OTI2LzgwKmkpKjE1KzIwOwogICAgICAgIHBpeGVsc1t1bnNpZ25lZChwb3MpXVtpXSA9IHRydWU7CiAgICB9CiAgICBmb3IodW5zaWduZWQgciA9IDA7IHIgPCA0MDsgKytyKQogICAgewogICAgICAgIGZvcih1bnNpZ25lZCBjID0gMDsgYyA8IDgwOyArK2MpCiAgICAgICAgewogICAgICAgICAgICBzdGQ6OmNvdXQgPDwgKHBpeGVsc1tyXVtjXSA/ICcjJyA6ICcgJyk7CiAgICAgICAgfQogICAgICAgIHN0ZDo6Y291dCA8PCBzdGQ6OmVuZGw7CiAgICB9Cn0=