#include using namespace std; typedef pair P; bool cmp(P a,P b){ return a.first*b.second>a.second*b.first; } signed main(){ string s;cin>>s;s+="####################"; for(int i=0;i