QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#446598#4788. Gravitydo_while_trueAC ✓296ms231432kbC++203.4kb2024-06-17 13:47:492024-06-17 13:47:49

Judging History

你现在查看的是最新测评结果

  • [2024-06-17 13:47:49]
  • 评测
  • 测评结果:AC
  • 用时:296ms
  • 内存:231432kb
  • [2024-06-17 13:47:49]
  • 提交

answer

#include<cstdio>
#include<vector>
#include<queue>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<ctime>
#include<random>
#include<array>
#include<assert.h>
#define pb emplace_back
#define mp make_pair
#define fi first
#define se second
#define dbg(x) cerr<<"In Line "<< __LINE__<<" the "<<#x<<" = "<<x<<'\n'
#define dpi(x,y) cerr<<"In Line "<<__LINE__<<" the "<<#x<<" = "<<x<<" ; "<<"the "<<#y<<" = "<<y<<'\n'
#define DE(fmt,...) fprintf(stderr, "Line %d : " fmt "\n",__LINE__,##__VA_ARGS__)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int>pii;
typedef pair<ll,int>pli;
typedef pair<ll,ll>pll;
typedef pair<int,ll>pil;
typedef vector<int>vi;
typedef vector<ll>vll;
typedef vector<pii>vpii;
typedef vector<pll>vpll;
template<typename T>T cmax(T &x, T y){return x=x>y?x:y;}
template<typename T>T cmin(T &x, T y){return x=x<y?x:y;}
template<typename T>
T &read(T &r){
	r=0;bool w=0;char ch=getchar();
	while(ch<'0'||ch>'9')w=ch=='-'?1:0,ch=getchar();
	while(ch>='0'&&ch<='9')r=r*10+(ch^48),ch=getchar();
	return r=w?-r:r;
}
template<typename T1,typename... T2>
void read(T1 &x,T2& ...y){read(x);read(y...);}
const int mod=998244353;
inline void cadd(int &x,int y){x=(x+y>=mod)?(x+y-mod):(x+y);}
inline void cdel(int &x,int y){x=(x-y<0)?(x-y+mod):(x-y);}
inline int add(int x,int y){return (x+y>=mod)?(x+y-mod):(x+y);}
inline int del(int x,int y){return (x-y<0)?(x-y+mod):(x-y);}
int qpow(int x,int y){
	int s=1;
	while(y){
		if(y&1)s=1ll*s*x%mod;
		x=1ll*x*x%mod;
		y>>=1;
	}
	return s;
}
const int N=4000010;
int n,m,tot;
int bl[N],et;
string a[2010],b[2010];
char str[N];
int id(int x,int y){return (x-1)*m+y;}
int X(int o){return (o-1)/m+1;}
int Y(int o){return o%m==0?m:o%m;}
int dx[]={1,-1,0,0};
int dy[]={0,0,1,-1};
void dfs(int x,int y,int o){
	bl[id(x,y)]=o;
	for(int i=0;i<4;i++){
		int u=x+dx[i],v=y+dy[i];
		if(u>=1&&u<=n&&v>=1&&v<=m&&!bl[id(u,v)]&&a[u][v]=='#')
			dfs(u,v,o);
	}
}
int dis[N],vis[N];
vpii eg[N];
signed main(){
	#ifdef do_while_true
//		assert(freopen("data.in","r",stdin));
//		assert(freopen("data.out","w",stdout));
	#endif
	read(n,m);tot=n*m;
	for(int i=1;i<=n;i++){
		scanf("%s",str+1);
		a[i].resize(m+1);b[i].resize(m+1);
		for(int j=1;j<=m;j++)a[i][j]=str[j];
	}
	for(int i=1;i<=n;i++)
		for(int j=1;j<=m;j++)if(a[i][j]=='#'&&!bl[id(i,j)]){
			++et;
			dfs(i,j,et);
		}
	for(int i=1;i<=et;i++)dis[i]=n+1;
	for(int i=1;i<=n;i++)
		for(int j=1;j<=m;j++)if(a[i][j]=='#'){
			cmin(dis[bl[id(i,j)]],n-i);
			int p=0;
			for(int k=i-1;k>=1;k--)if(a[k][j]=='#'){
				p=k;break;
			}
			if(!p)continue;
			if(bl[id(i,j)]!=bl[id(p,j)]){
				eg[bl[id(i,j)]].pb(bl[id(p,j)],i-p-1);
			}
		}
	priority_queue<pii,vpii,greater<pii>>q;
	for(int i=1;i<=et;i++)q.push(mp(dis[i],i));
	while(!q.empty()){
		int x=q.top().se;q.pop();
		if(vis[x])continue;
		vis[x]=1;
		for(auto [v,w]:eg[x]){
			if(dis[v]>dis[x]+w){
				dis[v]=dis[x]+w;
				q.push(mp(dis[v],v));
			}
		}
	}
	for(int i=1;i<=n;i++)
		for(int j=1;j<=m;j++)
			b[i][j]='.';
	for(int i=1;i<=n;i++)
		for(int j=1;j<=m;j++)if(a[i][j]=='#'){
			b[i+dis[bl[id(i,j)]]][j]='#';
		}
	cerr<<'\n';
	for(int i=1;i<=n;i++,puts(""))
		for(int j=1;j<=m;j++)
			putchar(b[i][j]);
    #ifdef do_while_true
//		cerr<<'\n'<<"Time:"<<1.0*clock()/CLOCKS_PER_SEC*1000<<" ms"<<'\n';
	#endif
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 11800kb

input:

10 10
..........
..######..
..#....#..
..#.#..#..
..#..#.#..
..#....#..
..######..
..........
..#....#..
.......#..


output:

..........
..........
..######..
..#....#..
..#....#..
..#....#..
..#.##.#..
..######..
.......#..
..#....#..

result:

ok 10 lines

Test #2:

score: 0
Accepted
time: 189ms
memory: 45204kb

input:

1583 1799
#..###..##..#.####.##.##.###..#.....##..#.#.#.#......#.....##..#.##...#.#....#..##.###...#...##.###.#.....#.##.###...#..##.#...###..#.###.#...###..#.......#...#....#.#..#...##........#.#..#..##.....###...#..#.####..####...#..##......#........#..#.##.##..#..#....##.##.##..#..##.....###....#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1583 lines

Test #3:

score: 0
Accepted
time: 23ms
memory: 14224kb

input:

592 750
.......#..#.#......#.............#...............###..#..#.........#.#.......##.............#.#.#................#..#...#...#......#...#.............#..##..#.#..#..........#..##.#.#..#..#.#...#....#......####.........#..#......#...........#......#............#.###.......##.#..#.#.#...#.#.##....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 592 lines

Test #4:

score: 0
Accepted
time: 84ms
memory: 128952kb

input:

1768 1394
###.###.#######.###.#####.####.##########################.########.###################################.#########################################.#########################.####################.##############.###########################.#######################.################.####.#.#######...

output:

###.###.#######.###.#####.####.##########################.########.###################################.#########################################.#########################.####################.##############.###########################.#######################.################.####...#################...

result:

ok 1768 lines

Test #5:

score: 0
Accepted
time: 36ms
memory: 19372kb

input:

517 1539
.#..#....#.......#..............#.#........................#................#.#.#.............................##.....#.#....#...#.......................#.##..........#...##.....#.......#....#............#.....#......................#....#...#...#......#...........#.............................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 517 lines

Test #6:

score: 0
Accepted
time: 73ms
memory: 72244kb

input:

1145 1314
##########.###.#####.##.####...##.#####.#######.########.##.#####.######.###.###.########.#.##...######.##.#########.############################.####################################.########.#.###.###.##.###########.#.###########.##############.#.###################.#.##.###############.#...

output:

##########.###.#####.##.####...##.#####.#######.########.##.#####.######.###.###.########.#.##...######.##.#########.############################.####################################.########.#.###.###.##.###########.#.###########.##############.#.###################.#.##.###############.####.####.#...

result:

ok 1145 lines

Test #7:

score: 0
Accepted
time: 61ms
memory: 23340kb

input:

959 1029
...........#....#.....#.........#..#.#..#..#............#..#....#....#.#...##.#........###...###.#....#................#................#....##..##.....#.#.....#.#####...............#......#......#......#..#..#.....##.....#......##..#.##..##.#...##...#...#....#..#.#....#.......#...#.#...##....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 959 lines

Test #8:

score: 0
Accepted
time: 118ms
memory: 81824kb

input:

1414 1827
.#############.###.#######.###..######.#.####.###.#####..##...##########.#..##.######.#..####.#####..##.##.###.#####.#..#.#####.###########.#.#.#####.##.##.#####...##.#####.####.#######.################.#..##.#####..####.###############.###..###########.##.#.#.########.###.###.#.#########....

output:

.#############.###.#######.###..######...####.###.#####..##...##########....##.######.#..####.#####..##.##.###.#####.#....#####.###########.#.#.#####.##.##.#####...##.#####.####.#######.################.#..##.#####..####.###############.###..###########.##.#.#.########.###.###.#.#########..#.#.#####...

result:

ok 1414 lines

Test #9:

score: 0
Accepted
time: 44ms
memory: 23076kb

input:

1206 1020
..#..............#...........................................#.....................#..........#.....#.........#....#........................#...........#...#...#.......#...#..#...#...................#.......#............#..#.....................#...................#.......................#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1206 lines

Test #10:

score: 0
Accepted
time: 38ms
memory: 15148kb

input:

1655 302
###..##.#..####.####...#...###..##..#..###.##..#..#########......#..##.#..#.#.#..##.##.#.###.#..#.#......##...#....#.#.##.#.###..###.#####.#..##....#..###....#.#...#....#....##.#....#####.#..####.#.###...##....#.##..#.#####.#.#.#.....#....#######...#.##..####..#.#..#.######.#.#.####...........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1655 lines

Test #11:

score: 0
Accepted
time: 14ms
memory: 13704kb

input:

103 1848
#..#.###..##.####..#..#.######.##..##..#########.####.##.#.#####.###..#.###..####.#.###.#.#.#.######.#.#####..###.##.####.####..#####.##...#.#######.###.########.####....###...#..##.#..########..###....#######..#######.#..##.##.##.#....#.###.##..####.####.###..##.###.###.#.##..###..#..#####...

output:

#..#.###..##.####..#..#.######.##..##..#########.####.##.#.#####.###....###..####.#.###.#.#...######.#.#####..###.##.####.####..#####......#.#######.###.########.####....###......##.#..########..###....#######..#######.#..##.##...........###.##..####.####......##.###.###.#.##..###..#..#######...####...

result:

ok 103 lines

Test #12:

score: 0
Accepted
time: 61ms
memory: 22000kb

input:

1705 836
#.####.#...######.####.#.#..#.##.####.###..#.#####.#.##.##.#..##....#####..####.##.####..#.####.###....##....##.###.#......###.#####.#.###.#.##...####..###.#.######.####..#...########.##..#...###.#.##.####...#.#..##.####.######.#...#..##.####.##.#...##.#######..###.##.##.#.#.....####.###.#....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1705 lines

Test #13:

score: 0
Accepted
time: 6ms
memory: 11060kb

input:

216 126
####################.###################.###########################.##.#######################.####################.#########
###.########.###############.###########.###.########.###########################################################.###########.
#######################.##############...

output:

####################.###################.###########################.##.#######################.####################.#########
###.########.###############.###########.###.########.###########################################################.###########.
#######################.####################.#...

result:

ok 216 lines

Test #14:

score: 0
Accepted
time: 19ms
memory: 12528kb

input:

143 1806
..#.##.##.#..###.##.##.#...##.#....##.##.##..####.##...#.##......#####...#.......#...####......#.....##.##...#.##....##....###..#..##.#....######....###.####...##..#..##.#.##..##...##..#...#...#..##.#...#..#.#.##...#..#.###..##..##..#.##.###.###..####.#.##..###.####.....#..#...###..#..........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 143 lines

Test #15:

score: 0
Accepted
time: 26ms
memory: 17252kb

input:

880 578
#.####.#..#.#####.##.###########.###.#.......#.####.########.#######.#..#..#####..#.##.####.##.##.#.#######.##.######.##.###########..#.##.#..#.###..####.##.####.#.########.#.######.###.########.#.######..#####.#######.#.##.###.##.#.##.###.#.####.#..#####.######.########.######.###.#######.#...

output:

..........#.#####.##.###########.............#.####.########.#######.#..#..#####..#.##.####.##.##.#.#######....######.##.###########............###..####.##.####...########.#.######.###.########...######..#####.#######.#.##.###.##.#....###...........#####.######.########.######.....#######.#.##.###....

result:

ok 880 lines

Test #16:

score: 0
Accepted
time: 140ms
memory: 120952kb

input:

1689 1872
#####.###.#########.#.########.#########.#..##.###.#############.#####.##########.#####.####..###############..###..#########.#########.######...#.####.#######..##.####.###..#.#####.########..##########.#.###.#.###.######.####.#.############.##.#..####.###.#.##.###..###.############.#.####...

output:

#####.###.#########.#.########.#########.#..##.###.#############.#####.##########.#####.####..###############..###..#########.#########.######...#.####.#######.....####.###..#.#####.########..##########.#.###.#.###.######.####...############.##.#..####.###.#.##.###..###.############.#.########.#####...

result:

ok 1689 lines

Test #17:

score: 0
Accepted
time: 58ms
memory: 24388kb

input:

1461 866
...#........#..#..........................###...#..#...............##.#..............#.............#....##..#..............#...#..................#.......#..##.#........................#........##.......#...#...........#...........#...........##..................#........##.......#............

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1461 lines

Test #18:

score: 0
Accepted
time: 15ms
memory: 12704kb

input:

149 1851
#.##...####.####.#.###..###.##.#.###.#.#.########.#.#####.#..##.#.###.######.###....#.#####.##..#...##..#########.##.#..#.##.##.#####.##.##...######.#..#####.######.###..######.#...##.##########..#.#..#..###....##.#####.#..#.#.##.##.####.##.###..##.##.##..###..###.####......#...##.#..###.#....

output:

.......####........###..###.##...###.#.#..........................###.######.###....#.#####.##..#...##..#########.##......##....#####.##.##...######.#........######.###..######.#......##########..#.#..#..###.......#####........##.........##.###............###..###.####......#...##........#.............

result:

ok 149 lines

Test #19:

score: 0
Accepted
time: 45ms
memory: 84348kb

input:

1296 1076
##########################.############################.##################.#########.#############.##############################################################.######.###################.#####################################################################################################...

output:

##########################.############################.##################.#########.#############.##############################################################.######.###################.###############################################################################################################...

result:

ok 1296 lines

Test #20:

score: 0
Accepted
time: 143ms
memory: 44084kb

input:

1468 1530
..#.....##............#.....#.....#.#.........#.......#........#.#.#..#.....#.........#......#..#.#..###.....#.........#...#.........##..##.....#...#...##...#......#.####.....#.........#.#.#..........#.#.#...#..#.#........#.##..#.......................#.....#...#..........#....#..#.##..#.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1468 lines

Test #21:

score: 0
Accepted
time: 138ms
memory: 35104kb

input:

1336 1306
####...##.#.#.......#.#..###...#...#....#..##.##...##.##.....##.#....##.#..#..#....#...#.#..#.............#.#.##....#.#.###.##............###..........#.....####...#..#.#.#....#.###..#.........##.#.#....#.#..###.##.##.##.#.......##..#.#...#..##........#.##.....###...##..#.###.##....###..#....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1336 lines

Test #22:

score: 0
Accepted
time: 31ms
memory: 20176kb

input:

1784 874
.......................#..........................#..........................#................................................................................................................#.........................#.#..........................#................................................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1784 lines

Test #23:

score: 0
Accepted
time: 16ms
memory: 13036kb

input:

1348 165
##...#......#..##.#.###..##..#...##...#.#........#..........#.....#...#.#..#..#.....#....#...#...#.#.#.......#...#...#......#....#.......................#.##....####
.##...#................##...#..#........###.#.#.....#....#.#.....#........#.#.####...........#.##...#.##.#.....#........##......

output:

.....................................................................................................................................................................
.........................................................................................................................................

result:

ok 1348 lines

Test #24:

score: 0
Accepted
time: 46ms
memory: 17436kb

input:

1658 483
.#....#.###.......#.##.....##..##.#..##..##...##....#.##.###.###.#.##.####.#..####..#.#.###..##...##...#.##.##.##.##.#.##..#.##.#.....####.#..##..###..####.....#..#.#.#.####.#.##.#.##...#.###..#######..###.#####.##.#..##.#..#...###.###.##.##.#.###..###..##.#..##.#..##.#.#.....###..........#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1658 lines

Test #25:

score: 0
Accepted
time: 8ms
memory: 11588kb

input:

1999 31
##########.#########.###.#..#..
.#....#####..##..#.####.##.##.#
############.#######..####.####
#.###.######.####.#############
###.############.#.########..##
.###.#####.###.##.###..#.######
#######.#.##.#########.########
########.#..######.##.###..####
..#.##..#.######.####.####..##.
####...

output:

##########.#########.###.#..#..
.#....#####..##..#.####.##.##.#
############.#######..####.####
#.###.######.####.#############
###.############...########..##
.###.#####.###.######..#.######
#######.#.##.#########.########
########....######.##.###..####
..#.##..########.####.####..##.
############...

result:

ok 1999 lines

Test #26:

score: 0
Accepted
time: 35ms
memory: 14996kb

input:

1270 377
..#..#.##...#.##..#...#..#...####....#.....##.#..#......#.##..#.##.##....##.##....#.#..#.##..#.###....###.##..#...###.#.#..###..#.#........#.......#...#...#....#...#.#...#.#..#...###..........#.....#.#..#.....#.#.#..#####......##..#.#....##.#..#.....##..##.##.#.#...###.#####.#.#.#.##..........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1270 lines

Test #27:

score: 0
Accepted
time: 24ms
memory: 17576kb

input:

1834 683
...........................................#.......................................................................#...................................#..............#........................................#..........#.................................#........................#................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1834 lines

Test #28:

score: 0
Accepted
time: 37ms
memory: 14508kb

input:

972 628
#.##.##....##..#..##.######.#.##.#..######.#.##...#.##.###..#...#.####.#.#..####..#.###.#...#.......#..#.#.#....#..#..##.#.###....#.##..#..#....#.#.#.#.#..#.###...#######.##..##.#.##..###..###.##.#..##.#####.#.##...##......#.###.....###########...#.#####..##.#...###.##.#.#.#.#.####.#.##..#.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 972 lines

Test #29:

score: 0
Accepted
time: 10ms
memory: 13872kb

input:

287 367
#####.####.##.#####.#####.##.#############.############.#.###.###.##.###########..##.#########.###########.####.#########.#########.#####.########.##.#####...#.#.##############.#######.#.#.#.###.##########.#########.##.#.#####.##########################.#######.#################.#######.####...

output:

#####.####.##.#####.#####.##.#############.############.#.###.###.##.###########.....#########.###########.####.#########.#########.#####.########.##.#####...#.#.##############.#######.....#.###.##########.#########.##.#.#####.##########################.#######.#################.#######.#####.#.####...

result:

ok 287 lines

Test #30:

score: 0
Accepted
time: 161ms
memory: 36092kb

input:

1886 1566
###.###..####.....#.##...#....##...#...#...####..#....#####..#...######..#..#..#...#..##.##..#.#.#.##..#..##...#..####..#.#.###...#..#.##.#.#..#.#####.######..#.###.#########..###..##.#.#########.#.####.##..#####..#...#.#....#..###.##..###......###..####.########....#####.......####.#.#......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1886 lines

Test #31:

score: 0
Accepted
time: 23ms
memory: 32468kb

input:

1986 227
######.############################################################################################################################.###############################################################################################
##.############################################################...

output:

######.############################################################################################################################.###############################################################################################
##.#####################################################################...

result:

ok 1986 lines

Test #32:

score: 0
Accepted
time: 15ms
memory: 13864kb

input:

625 676
......#.....................#...#....#......#........................#..##..................#.................##.............#......#..............#.....#..........................#...###.........#.###......#...#..#.#.........##..#.........##..........#.#........#..#.............#.#...##..#....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 625 lines

Test #33:

score: 0
Accepted
time: 53ms
memory: 67616kb

input:

974 1358
#########.##################.######.####.#############.################.############.######.######.#####.######.###################.################.#########.################################################.###.#############.##########.#############.#######.#######.#.##########.###########...

output:

#########.##################.######.####.#############.################.############.######.######.#####.######.###################.################.#########.################################################.###.#############.##########.#############.#######.#######.#.##########.####################...

result:

ok 974 lines

Test #34:

score: 0
Accepted
time: 38ms
memory: 16720kb

input:

1565 351
..#.....#....#...........#..#...##....#..###....#.....#.....####.##..#.##..#.##..####..#..###.........#...#.....##...##.#...#..#....#.#.#.#......##....#...#....#....#...#..#..#.##.#.#.......#.###.#.##....##.##.####.###......##.##.....##.#.##.####.#....#.#.####...#.....##...##...#.####....#....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1565 lines

Test #35:

score: 0
Accepted
time: 6ms
memory: 10360kb

input:

1907 15
...............
...#...........
...............
...............
.....#.........
.........#.....
...........#..#
...............
.............#.
...............
...............
...............
........#......
...............
...............
...............
..........##...
.#.............
.......

output:

...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............

result:

ok 1907 lines

Test #36:

score: 0
Accepted
time: 87ms
memory: 137244kb

input:

1597 1522
#######################.###########################.###.####.######.#################################################.#####################################.#####################################.##############################.##########################.####################.################....

output:

#######################.###########################.###.####.######.#################################################.#####################################.#####################################.##############################.##########################.####################.################..#########...

result:

ok 1597 lines

Test #37:

score: 0
Accepted
time: 47ms
memory: 16968kb

input:

802 883
...#..#.#.#.######...###..#.#.##..#.#.#..##....##....#.##.##...##..#...##.....##..####.....#..#.##..#.#.##..###.###.###...######....##...##..####...#.#####.###.##.##....#.##..###...####....##..#.....#.#.#...##.##.#..###.###.##...###....##.#..#..##.#..###..##...#.#.#...####.###.#.###.###.#......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 802 lines

Test #38:

score: 0
Accepted
time: 24ms
memory: 12216kb

input:

1266 247
.####.#.##....#.##.#..#..#.#.#..##...#.#..#...#.#.##.###...##..#.######.###.#..##.#.#...#.#.##.####...##..##..##.###.###.#..#.###.##.#.##.#..####..##.#####......#...#....##..#..##.#.#.####.##.#.####..#...###..######.#.####..#.####.##.#..#######...
..#......##.##...##..#..#.#.###.###.#..#..#...

output:

.......................................................................................................................................................................................................................................................
.......................................................

result:

ok 1266 lines

Test #39:

score: 0
Accepted
time: 67ms
memory: 47352kb

input:

1479 1004
###########.##.#.#####..###.#.#############..#####.#####.##..######.#..############..########.##.###..#####..######.########..##..########.#..#.#..#.#.#####.#######.##..#####.####.#########.#..##..####.#######.#.####..####.#####.#########.##..##########..##.#.####.#.##.#..########..#####.....

output:

###########.##...#####..###.#.#############..#####.#####.##..######.#..############..########.##.###..#####..######.########......########.#..#.#..#.#.#####.#######.##..#####.####.#########.#..##..####.#######.#.####..####.#####.#########.##..##########..##.#.####.#.##.#..########..#####..##.#..####...

result:

ok 1479 lines

Test #40:

score: 0
Accepted
time: 14ms
memory: 14964kb

input:

1794 248
....#.........................#...............................................#.............................#..................#..........#.........................#...........................................#.............#.......................#.
.......................#.........#...........

output:

........................................................................................................................................................................................................................................................
......................................................

result:

ok 1794 lines

Test #41:

score: 0
Accepted
time: 4ms
memory: 11004kb

input:

1196 125
......#...........#.............................#........#..........#....#................#............................#.....
...........#........................#...#................#...................................................................
..........#...........#.#.........#.......

output:

.............................................................................................................................
.............................................................................................................................
...................................................

result:

ok 1196 lines

Test #42:

score: 0
Accepted
time: 16ms
memory: 11732kb

input:

918 207
..........##...#.........#.....#...........#...#.........##..#...................##..####....#...#......#.......#..#.....###.###.#..#......#...#....#.......##........#.#....#.#..#...#.................#......
........###.....##..#..........#............................##...##..#......#...##.....

output:

...............................................................................................................................................................................................................
...............................................................................................

result:

ok 918 lines

Test #43:

score: 0
Accepted
time: 81ms
memory: 27476kb

input:

666 1868
#..........##...........#.#.#......###.#..##...........#...#..#..##...###.##......#.#.......#..#..................#..............#..#......#.................#..#...........#....#..#.##..#........#....#..#...#..........#......##....##....#....#..#..#.#...#....#..##........#.#.#....##....#......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 666 lines

Test #44:

score: 0
Accepted
time: 24ms
memory: 15724kb

input:

874 667
..#......#..........#.#...........#.......#.............................#.##..#..#...#.................................#......#....#.#.......#............##..#...........#.........#........#.........#..................................#....#....#...#......................................#...#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 874 lines

Test #45:

score: 0
Accepted
time: 13ms
memory: 12280kb

input:

915 406
......................................#......#................................#...............#.........................................#...#...............##...................#............#...........#...........#...#..........#.....#..#...........#.........#.....#.........##.#...............

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 915 lines

Test #46:

score: 0
Accepted
time: 41ms
memory: 41360kb

input:

1480 602
###.##.######.#####.####..##.##.###########.##.#####..###.#.##.#.########.#.##.##########.######.##.####.####..##.##.#####.#####.#######.##########.#############################.#####.#######.#.#####.#################.#..##.########.#######.################.#####.#.####..###################...

output:

###.##.######.#####.####..##.##.###########.##.#####..###.#.##.#.########.#.##.##########.######.##.####.####..##.##.#####.#####.#######.##########.#############################.#####.#######.#.#####.#################.#..##.########.#######.################.#####.#.####..#####################..####....

result:

ok 1480 lines

Test #47:

score: 0
Accepted
time: 19ms
memory: 12684kb

input:

151 1739
.#..#.#...#.#.#....#.###.#..###..#.#.......#.##.#.#.#....#..#####.#...#.#.#.###.###..##..#...##..#.....#.##..#....#..#....#.#..#.##.#.#.#..####.#...##.###.#..##....#..#.#.#.....#.###.#....###...##.##.####..##.##..####.#.....###..#.##..#.............###...##...#..#####.#.##..####...#.#..#......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 151 lines

Test #48:

score: 0
Accepted
time: 4ms
memory: 12384kb

input:

250 176
......##..#........###....#.#..#####.#..##..##...#....#.....#..#....#.#......##......####........##..##..#..#......#.##...##.....#.#.#.#.#.#.#...#.......#...#.#.#.#.#...#.###..
...........#..#.##..#..........##.##.#.##..#......##.#......#.#....##...##....####.....#.#..###..#.#..#........#.#....

output:

................................................................................................................................................................................
..............................................................................................................................

result:

ok 250 lines

Test #49:

score: 0
Accepted
time: 14ms
memory: 16080kb

input:

589 431
######.##..#########.#####.#...#######...##.#####.##.####.##.##..#######.###.####..#...########.###.##.###.#.##.#..####.###.##...##########.##.#####...##..###.##.#######.###.#.###.#######.#.#####.###.##.#.##....####.##########.##..######.####.####.#.#.##.###.##.###..####.##.####...##.##.####...

output:

######.##..#########.#####.#...#######...##.#####.##.####.##.##..#######.###.####......########.....##.###.#.##.#..####.###......##########....#####...##..###....#######.###.#.###.#######.#.......###....#.##....####.##########.##..######.####.####...#.##.###.##.###..####.##.####...##.##.####.###.###...

result:

ok 589 lines

Test #50:

score: 0
Accepted
time: 153ms
memory: 86380kb

input:

1656 1962
####.######.#.#.######.###.###.#..#######..####.##..###.##.#..#####.#.####..#..##.######.###.##.######.###.#######...##.#..##.##.####.###########.#.##.##########.#.#.###..#.#####.#.#.#..#.######.##.#####.#####.########.#####.##########.#.#..#######.#..#.###..#..####.#.#####.##############....

output:

####.######.#...######.###.###.#..#######..####.##..###.##....#####.#.####..#..##.######........######.###.#######...##.#..##....####.###########...##.##########.#.#......#.#####.#.#......######.##.#####.#####.########.#####.##########...#..#######....#......#..####...#####.##############.#########....

result:

ok 1656 lines

Test #51:

score: 0
Accepted
time: 49ms
memory: 16836kb

input:

1253 556
.#.##.##.#.#.#.######.#.#.#..###.#.######.##.#.#..#..#.##..#.###..#.#..####.##..#....#.#.#####.....###...#..##.#...#..#........###.#..#.####.#..###.#...#.##...#.#..#.......##.#.#..#..##.#..###.#....#.#......##..###..#....#..##.#...#.#.#.###..##..###.###....#.#.#.##.#...#......###..#.#....##...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1253 lines

Test #52:

score: 0
Accepted
time: 8ms
memory: 11020kb

input:

345 339
.##...#..#.##.#..##.##...##...#.##..#..#..##.#.#.##.#..##......#...#.....#....#.#.#.#........#......#....###..#.#...###.#..#..##.##...#...............#...#..##...#.#......##...#.......#......##..###........#......##.##.##.........###...#...#.#..#..#.####........#...#...#.#..#..##.###...#.......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 345 lines

Test #53:

score: 0
Accepted
time: 210ms
memory: 53348kb

input:

1810 1576
#.###.........#..##................#......#.#.#...##.#.......#....#......##...#...#.......##............#.....#.#..#..#......#.#.###....#.##.#.#..#.#####..#.......##..#.....#..#.#...........#.#.#..#.........#.....##...#.#..###...#...#.......#.#.#......#.##.##..#...#.....#.##.#.##........#....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1810 lines

Test #54:

score: 0
Accepted
time: 80ms
memory: 39548kb

input:

1208 1357
##.####..####..###########.#.#...###.##.#.####..###.#.####.#######.#.#####.##.####.#.################.###.#.#.###.#..######.##.####.#.#.##.##.#####.#.####..#.#.#.######.#.###.###.######.#..#.##.#.#.#.######.#.#####...#..#####.#####.#.#.#..#####..######.#.##.###.################.#..#.#...#....

output:

##.####..####..###########...#...###.##.#.####........####.#######...#####....####.#.################.......#........######.##.####.....##.##.#####.#.####..#.#.#.######.#.....###.######.#..#.##.#.#...######...#####...#..#####.#####.#...#..#####..######.#.##.###.################......#............###...

result:

ok 1208 lines

Test #55:

score: 0
Accepted
time: 66ms
memory: 27624kb

input:

1351 1040
#..#.#.....#....#...............#......................#.###...#...........#..##....#.......##...#.....#..........#......#..#..............#...#..................#.#.........#..........#.....#...#.#......#.#...........#.##......#...##.#...........#.................................#...#.......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1351 lines

Test #56:

score: 0
Accepted
time: 167ms
memory: 40644kb

input:

1582 1581
.....##....#####.#..###.###.#..#......#.#...#...##.#.......###.##..#..##....#.#....#.#...#.#..###......##.....#.#...#####.###.#.####..#.....##..#.#..####..##.#.#.#....#.##...#....####..#...#....#..#...#...######.###.######...#.#...#.#.#..#.##.##...##.#....#.#.##.....##.##.#.#.#.##.##.....#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1582 lines

Test #57:

score: 0
Accepted
time: 70ms
memory: 30812kb

input:

1937 1139
..#.......#.........................................#....#.............#..................#............#.....#......#.......................#...............#..........#..#.............................##.......#.....#............#...#...............#.##...##...............................#....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1937 lines

Test #58:

score: 0
Accepted
time: 134ms
memory: 40476kb

input:

1913 1222
#...........#........#...........#...#..#...........#..##..............#..#......#..............#............#.#.........#..#......#....................##..#.....#..#....#.......#....#....#.#.......#.....#....#...........#.#...................#..............#.#.#...##......##..##.............

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1913 lines

Test #59:

score: 0
Accepted
time: 20ms
memory: 37936kb

input:

1725 337
#########..####################.####################################################################################.##########################################################.#####################.#..#######################################################.######.##########################....

output:

#########..####################.####################################################################################.##########################################################.#####################.#..#######################################################.######.##########################.#########...

result:

ok 1725 lines

Test #60:

score: 0
Accepted
time: 30ms
memory: 20892kb

input:

1146 1018
.#..#................#....#...#....#.........#......................................#.........#..#......................................#............................................#...........#.....##..........#....#.......................................#......#.............................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1146 lines

Test #61:

score: 0
Accepted
time: 11ms
memory: 12648kb

input:

92 1436
###.#.####.##.#.##.####..####..#.##.#.#########################..#.#####.#############.##.###.#######.##.########.#.#####.###.#######.########.########.#################.#########.##.###.####.###.####.###.#.########...#####..#########.#####.##.######.#######.###.##.#########.##.#############...

output:

###.#.####.##...##.####..####..#.##.#.#########################..#.#####.#############....###.#######.##.########...#####.###.#######.########.########.#################.#########.##.###.####.###.####.###...########...#####..#########.#####.##.######.#######.###.##.#########.##.#####################...

result:

ok 92 lines

Test #62:

score: 0
Accepted
time: 71ms
memory: 21692kb

input:

474 1969
.#.#....#.#.#..#.##.###.......#.#.###.......####......#.##...##...#....#.....#.###.#.####.####.....#..#.##.#.....#.....##..#.....#####.......#.....#...#...#..#..#.....###......##....#........#.#.#...##..##..##...#.....###..#.#..##..###.####.###...##..#.....#..###.#.....##.#....##.#.#..##......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 474 lines

Test #63:

score: 0
Accepted
time: 12ms
memory: 18144kb

input:

295 1264
.#.#.####.######..##..#..#..#######.#.###..###..###.####.#.#.######.#####.##..##.##.#####.##..#.####################.#.###.####.#.##...##.##.#.#####.##.####.##..####.####.##.##.###..###.###...#########.#################.#.##############.#.#..###..##..########.#.#################..####.#.#.#...

output:

.....####.######..##.....#..#######.#.###..###..###.####...#.######.#####...........#####.##..#.####################.#.###.####.#.##...##.##...#####.##.####.##..####.####....##......###.###...#########.#################.#.##############......###..##..########.#.#################..####.#.#.#######.#....

result:

ok 295 lines

Test #64:

score: 0
Accepted
time: 0ms
memory: 10108kb

input:

1841 4
####
###.
.###
##.#
#.##
##.#
####
#.##
#.#.
####
.###
.###
####
.###
..##
.###
##.#
.##.
##.#
.#.#
#.#.
###.
##.#
.###
####
##.#
###.
.#.#
####
#.##
####
.###
##..
.##.
###.
###.
####
####
##.#
###.
##.#
##..
####
##.#
##.#
..##
####
####
.#.#
##..
####
####
####
.###
####
.###
####
####
###...

output:

....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
...

result:

ok 1841 lines

Test #65:

score: 0
Accepted
time: 37ms
memory: 21872kb

input:

697 1571
...........#..............##.......#....................#...........##........................#............#..............................#..#.#..........................#.#.........##.#......#..............................................#.##...................................................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 697 lines

Test #66:

score: 0
Accepted
time: 138ms
memory: 166272kb

input:

1948 1934
##.############.##.#########################.#########.##.#.#.#######..##.#######..##.##.####.#############.#####..#.############.###.#####.###############################.####.#########.####.###.#####.##.#################.#.###..####.####.#####.####..###.#########.#########...############...

output:

##.############.##.#########################.#########.##.#.#.#######..##.#######..##.##.####.#############.#####..#.############.###.#####.###############################.####.#########.####.###.#####.##.#################...###..####.####.#####.####..###.#########.#########...############...##.####...

result:

ok 1948 lines

Test #67:

score: 0
Accepted
time: 65ms
memory: 49872kb

input:

1006 1457
##..#.######.#..#######.#.##.#..#####.#.#.######.#####.#.###.###.###.##...#######.#...####.######.##.#.#.#######.###.#..#######.###.#.########.##.#################.#..#.#.#######.###.######.######.######.####.#..##########.##.####.###..##########.#.#.#.######.###.###.##.###..##.#.######.#....

output:

##....######.#..#######.#.##....#####.#.#.######.#####...###.###.###.##...#######.#...####.######.##.#.#.#######.###.#..#######.###.#.########....#################....#...#######.###.######.######.######.####.#..##########.##.####.###..##########.....#.######.###.....##.###..##...######.#..##..####....

result:

ok 1006 lines

Test #68:

score: 0
Accepted
time: 3ms
memory: 10856kb

input:

762 51
#...######.#..####...#.#####.#...########.#.##.#.##
##########..##.#..#####..###.####..#####.########.#
..############.#.######.####.########.###.#.###.###
#########.####.####..#.###########.####....#..#####
##.#..#.##.##..####.##..######.####.#####.###.#####
##.###.###.#######.###.#.#.#####....

output:

#...######....####...#.#####.#...########.#.##.#.##
##########.###.#..#####..###.####..#####.########.#
..############.#.######.####.########.###.#.###.###
#########.####.####..#.###########.####....#..#####
##.#..#.##.##..####.##..######.####.#####.###.#####
##.###.###.#######.###.#.#.#####..#.###....

result:

ok 762 lines

Test #69:

score: 0
Accepted
time: 3ms
memory: 10120kb

input:

915 46
##..#....#..####.##.###...##.##.#.######.#.##.
###.##....###..##....#.#.###.###.......#####.#
.####.###.##..#.##.##.#.#...#..#...##.##.##..#
.######......###.##.#..######.###.#..#.##..##.
##...#..####.####..#####...####.###..##...#..#
..#.##..#######.#.######....#....#.###.#######
#..#.######...

output:

..............................................
..............................................
..............................................
..............................................
..............................................
..............................................
.....................

result:

ok 915 lines

Test #70:

score: 0
Accepted
time: 261ms
memory: 60692kb

input:

1775 1904
..##.........#..#...##....#.###.##.#..####.#..#.....#......#............#.......##....#...##.#......####..###..#.#..#.##.#...#.##.#..#....#...#........#..#.......#..#......##..###.....##..#.........#....#.#..#.....##...#..#...#.....#.....#.#...#...##..###...##..####......#...#.##....#.##.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1775 lines

Test #71:

score: 0
Accepted
time: 68ms
memory: 31040kb

input:

1353 988
#####.###.##.############.#.#####..#.######.##############.######.#.#.###..#.#.#.#.#####.#......###.####..##.######.##..#.#######..##.#.#.########..#####.########.###.##.######..##.#.##..#.#..##..####..#...############.#.#..##.#.###..####.####.#.#####..##.#####..#########.#####.##.##.######...

output:

......###.##.############...#####..#.######.##############.######.#.#.###....#.#.#......................................#.#######.......#.########..#####.########.###....######..##...##..#....##............############.#....##...###..####.####.#.#####..##.#####..#########.......##.##.######...#####....

result:

ok 1353 lines

Test #72:

score: 0
Accepted
time: 47ms
memory: 16780kb

input:

510 1227
#.....#.#...#.......#...#......#.......#..#.........#..##.....###.#.......###.#.##.###....#........#.....##.......#.....##...#....#.#.....#..#..#......##..#....###...###..#....#..#...#####.##.#...#.#........##.#.#.#.#...#..#...#.#..##....##.##...#....##......#.#..#........#......##............

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 510 lines

Test #73:

score: 0
Accepted
time: 7ms
memory: 11340kb

input:

89 479
##.#######.####.##.######.#############.#.###.###.####.##..######.###.###############...#############.############.##########.#.##########.######.######.##.########.###############.####..#.####..#####..#.##.#######.####.###.###.#.#####.######.####.######.#######..######.###################.#....

output:

##.#######.####.##.######.#############.#.###.###.####.##..######.###.###############...#############.############.##########...##########.######.######.##.########.###############.####..#.####..#####....##.#######.####.###.###.#.#####.######.####.######.#######..######.###################...#.#####...

result:

ok 89 lines

Test #74:

score: 0
Accepted
time: 11ms
memory: 16564kb

input:

156 1705
..##.###..##.####....###....###..#.######.#..####..#..#######.###.###.##.#...##############.###.#####.#.#.######..###.######################..#######.###.#.##.##.#.######.###.#.#..#..####....####.##.#...#..#.##########.#######..#.#...########.##.#.####.#.#####.#.##########.########.###.####...

output:

..##.###..##.####....###....###..#.######.#..####.....#######.###.###.##.....##############.###.#####...#.######..###.######################..#######.###.#.##.##.#.######.###.#.#.....####....####.##.#......#.##########.#######..#.....########.##.#.####.#.#####.#.##########.########.###.######.###.##...

result:

ok 156 lines

Test #75:

score: 0
Accepted
time: 160ms
memory: 38080kb

input:

1793 1358
....#...#.###.#..#.#.......#.#.####..####.#.#..###...####..##.#...##.###....#.##....##.#####..###...#####..#.#.#..#....#..#.#.#.....##.#...##..#.##.#..##.#.###.#.#..##.##.....#.#.......#..######...####..##....#.####.##....#.###.#####......#.##.##.######...#.#.#..#..#.....##..#.##.....#.......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1793 lines

Test #76:

score: 0
Accepted
time: 41ms
memory: 23488kb

input:

1610 855
......#....................................#......................................#...#...............#.....#............................................#..................#.#.............#.............##..#.......##.#........#.......#.....#.............#.......#..............#................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1610 lines

Test #77:

score: 0
Accepted
time: 15ms
memory: 12756kb

input:

184 1325
..#...#.........#............#.....#.....................#.......................#....#....#.......##..#..........##...#......#......#..............#.##...#.......#.....#..##.........#..#....#..#.#...##.#.....#.........#....#.......#.......#.#.........#........#....#....#.#...#....#...........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 184 lines

Test #78:

score: 0
Accepted
time: 76ms
memory: 36576kb

input:

1515 1116
###.###.####..#.#.#.###.#..###..#.####..#.#######.#.##..####..###..###.#....###########..#####.######.######.#.##......#####...##.###.##.##.##.#..###.#..#.##..#.#.###.###.####.##.#.#######..########.#..##...######.#...###.##################.#.#.###.#.#..#######.############.###..#..##.##.#...

output:

###.###.####..#.#.#.###.#..###............#######.#.##..####..###..###.#....###########..#####.######.######.#.##......#####...##.....##.##.##....###....#.##..#.#.###.###.####.##.#.#######..########.#..##...######.#...###.##################.....###...#..#######.############.###..#..##.##.######.###....

result:

ok 1515 lines

Test #79:

score: 0
Accepted
time: 114ms
memory: 33244kb

input:

1295 1620
#.####.###..####...###..#.#..###....#.#....#.##.###.#..#####.####.##.######.#####.#....#.#..####..####.####..#.##.#####.##..##..####.####.#.###..###.....##.##..###...##..##.####.##.###.####.###.#######.#..####..###.##...###.############.#.###########.###..##..#######.....#.##.#####.#.####....

output:

.......###.........###................#....#....###....#####.####.##.######.#####......#....####..####.####..#.##.#####...................#.###.............##..###...##..##.####....###.####................####..###......###.############...###########.###..##..#######.....#.##.#####.#.####.##########...

result:

ok 1295 lines

Test #80:

score: 0
Accepted
time: 6ms
memory: 10168kb

input:

1047 61
.......................#.....#...........#...........#.......
............................#................................
...#..............##......#......#.....................#.....
..#....................................#........#............
.........................................#.....

output:

.............................................................
.............................................................
.............................................................
.............................................................
.......................................................

result:

ok 1047 lines

Test #81:

score: 0
Accepted
time: 3ms
memory: 10124kb

input:

23 1182
#...#..#..#...#......#.........#..###......#.#.....#.......#...##.#..............#.....##....###.##.#.#.....#..####.....##.....###...#..........#...#....#.#.............#.....###...#.......#......#......#...##.....#.....##....#......#....#.......#.......#.#.#..#.#..#............................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 23 lines

Test #82:

score: 0
Accepted
time: 48ms
memory: 16464kb

input:

504 1267
.##.#.#.#..##..#......###....#.###.##..#..##.##..#..#.####......#..####.#.#..##..#..#..##....####..##.#.##..#.##...#.#.....#..#.#####....##.##.##..#.#########..#.##.#.###....#....#..#.......##.###.#.#.....####.##...#....#...##..##..#.#.....#..##.#######..#.#..##...####...###..##.#.##..##..#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 504 lines

Test #83:

score: 0
Accepted
time: 186ms
memory: 55568kb

input:

1970 1769
....#.............#.........#..............#..#.#...........#....#...............#..#....#.#...#...#.........#...#..............#..#......................#....#...........#.#.#...#......#.............#..........#.......#....#.....#...#......#...#..##..##............#....##..........#..#......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1970 lines

Test #84:

score: 0
Accepted
time: 143ms
memory: 39524kb

input:

1570 1257
#.#..#.#.........##..#....#.#...#.#..#..#.#...####.#.#..#......#....#.#..#.#.#....##..##..##..##..##.....#...#......#.#..#.#.#..#......##..........#.#..#.####..#.#.....#.#......#......#...##...#.#.....#..##..#.....#....##.....#.....##.##......#..#..###.#.#.#.....#..#...##...#......##.....#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1570 lines

Test #85:

score: 0
Accepted
time: 0ms
memory: 10388kb

input:

82 993
........##...................##.............#...............#..............................#...................#.............#.............#........#.................#....#......................................#.........#........................................#.......#...........#.....#........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 82 lines

Test #86:

score: 0
Accepted
time: 72ms
memory: 24728kb

input:

890 1398
.#.#..###..###.#....#.#######.#.#.#.#.........#.####..###.##.###.####.##..###.#.#.###..##...###.#..#..#..###.###..#...###....##....##.#.###.###...###.#.#...#.#....######...###..#####...#.####..###.####..#..##.###..#...###..#.####.#####...#.#.##.####.#.####.####...#.##..#.##..#.###..#..##..#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 890 lines

Test #87:

score: 0
Accepted
time: 72ms
memory: 91728kb

input:

1785 1073
###.####.##.#.#########.##################.##.##########################.#########.#####.##############.###################.#######.#######.#############..##.###.########.#########.#####################.#################.########.###.####################.#######.#############.###.#########...

output:

###.####.##.#.#########.##################.##.##########################.#########.#####.##############.###################.#######.#######.#############..##.###.########.#########.#####################.#################.########.###.####################.#######.#############.###.#############.#####...

result:

ok 1785 lines

Test #88:

score: 0
Accepted
time: 56ms
memory: 35092kb

input:

961 1057
##..#.#.#.###.#..###########.##...#..####.###.####...#.#.#.#####.###..#####.###....#.####.##..#.##############..###########...#.#.######.######.#.#..####.#########..##.###..###.#####.###.######..###.##.##.######.###.##.#.#.##..####..#..####.##.#.#####.##.###..###.###########.#.###.##.######...

output:

##..#.#...###....###########.##...#..####.###.####...#.#.#.#####......#####.###....#.####.##....##############..###########...#.#.######.######.#....####.#########..##......###.#####.###.######..###.##....######.###.##.#.#.##..####..#..####.##...#####.##.###..###.###########.#.###.##.#########..###....

result:

ok 961 lines

Test #89:

score: 0
Accepted
time: 7ms
memory: 11000kb

input:

1218 243
.........#....................#..........................................#...............#........................................................................................................#................................................
..................................................

output:

...................................................................................................................................................................................................................................................
...........................................................

result:

ok 1218 lines

Test #90:

score: 0
Accepted
time: 97ms
memory: 102636kb

input:

1984 1195
####.####.###.#####.###########.####..####.#########.########..###.###########.#####.#############.##.##################..############.######################.######.###.##.######.#######.#.#########.####.#.###########.######.#####.####.###.##########.######..#######.######.######.#########...

output:

####.####.###.#####.###########.####..####.#########.########..###.###########.#####.#############.##.##################..############.######################.######.###.##.######.#######.#.#########.####.#.###########.######.#####.####.###.##########.######..#######.######.######.##############.####...

result:

ok 1984 lines

Test #91:

score: 0
Accepted
time: 20ms
memory: 27776kb

input:

507 917
########.##########.####.########.##########.#############.#####.########.#########################.####.####..#.#...###########.###.########.#######..####.#####.#######.#############.############.##.###.######.#############################..###.##.###..##################.#.###.########.####...

output:

########.##########.####.########.##########.#############.#####.########.#########################.####.####..#.....###########.###.########.#######..####.#####.#######.#############.############.##.###.######.#############################..###.##.###..##################.#.###.########.########.#.#...

result:

ok 507 lines

Test #92:

score: 0
Accepted
time: 8ms
memory: 10936kb

input:

1155 123
##.####..###....####...####....##.#.#..###.##.#####..#....#######.#.#.#...#.#..###..#.##.######.#.#####.#.#######..###..#..
##.#.#.##.##..#.##..#..###.#..##.##.#..###.###...##..###..###.#....########..###..##.###..###########....###.####.#.##..##.
.####.#.########.###.....##.##...#.####.#.#...

output:

...........................................................................................................................
.........###....####...####.........#..###................#######...#.#...#....###.........................................
##.######.##..#.##.....###.....##.#.#..###....#####....

result:

ok 1155 lines

Test #93:

score: 0
Accepted
time: 11ms
memory: 11356kb

input:

231 627
...##...#......#.##.#.......##...#....##..#.........#..........#.#......#.#.#.#.#.#..........#......#...#....##.......#.#..#.###..#....#..#.##......#...#.......#......#....##...###.........##.#..#..##.........#.#...#..###.#........##.#....#.#..#..##....#.....#.###...##......##.###..#.#######...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 231 lines

Test #94:

score: 0
Accepted
time: 32ms
memory: 38932kb

input:

839 833
########################.###########.####.############################.##.#################.######################.###.##############..##########..#####.#######################.####.#.#########.####.######..#######.#####.#######.##.############.##################.###.####.###.###############...

output:

########################.###########.####.############################.##.#################.######################.###.##############..##########..#####.#######################.####.#.#########.####.######..#######.#####.#######.##.############.##################.###.####.###.################.######...

result:

ok 839 lines

Test #95:

score: 0
Accepted
time: 5ms
memory: 9812kb

input:

38 100
#.###.##.#.###....#.###.#..#.####..##.#..##..##.#.###.###..#.####.######..###########.#####.##.#####
#..##..#####.#.#####.###..##..##########.#.####..#.##.##.#..#.#######..##.#.######.###.##.#..###..##
####.####.####..#.########.#####.###.#..#.###.##.######..###.####..####...###.###.#.##...##...

output:

#.###.##.#.###....#.###....#.####..##.#......##...###.###....####.######..###########.#####.##.#####
#..##..#####.#.#####.####.##..##########.######..#.##.##......#######..##.#.######.###.##.#..###..##
####.####.####..#.########.#####.###.#..#####.#########..#.#.####..####...###.###.#.##...#####.#.#...

result:

ok 38 lines

Test #96:

score: 0
Accepted
time: 75ms
memory: 80952kb

input:

1742 929
#########.##########.########.#..###########.#.######.#######.###.####.#####..################.###############.#####.##.#####.########.#####..###############.##############.#########.###..######.###.#.#########.###############.#######.##############################.#############.#######.###...

output:

#########.##########.########.#..###########.#.######.#######.###.####.#####..################.###############.#####.##.#####.########.#####..###############.##############.#########.###..######.###.#.#########.###############.#######.##############################.#############.#######.############...

result:

ok 1742 lines

Test #97:

score: 0
Accepted
time: 11ms
memory: 14772kb

input:

1343 145
##.#.#..###.##...##.###.##.#.#######..#..#.###.#.#.#####..####.##.#.#.#####.###############.####.##.##.#..#.#####..########.###.#..###.#######..#
###.#..#######.##.########.####.###.###.###.###.#######.####...#.#.#..######.###.#.#######.#..#####..##.#####.#.####.#.##.##.#.##.########.######...

output:

##......###.##...##.###.##.#.#######..#..#.###...#.#####..####.##.....#####.###############.####.##.##....#.#####..########.###.#..###.#######..#
######.#######.##.########.####.###.###.###.###########.####...#.####.######.###.#.#######....#####..########.#.####.#.##.##.#.##.########.######
..#####....

result:

ok 1343 lines

Test #98:

score: 0
Accepted
time: 17ms
memory: 15148kb

input:

838 417
.######.##.###.##.##.#############.##.#.#.###.#.####.#####...#####.#####.#..#############....#.##.##.###.##.###..#####..###.######..#.######.#####....####..###.###.###.##.###########.########.#####.##.###.####.#########.######.####.###.##..###.########.###.#####...#########.#...#..##.#.##.#....

output:

.######.##.###.##.##.#############.##.#.#.###.#.####.#####...#####.#####.#..#############....#.##.##.###.##.###..#####..###.######....######.#####..........###.###.###.##.###########.########.#####.##.###.####.#########.######.####.###.##..###.########.###.#####...#########.....#..##...##...#####.##...

result:

ok 838 lines

Test #99:

score: 0
Accepted
time: 59ms
memory: 19224kb

input:

450 1921
..##..#.#.#.#.#..#..#...##..#...#..####.##..#.......#..#..###..##.##.#.###...####..##.#.##....#..#...##..###.##..##..##.#.#####.##.#..#..#......###..####...##..##.#...#.##........##.##.##..#......##.#....##.##.#.#####....##...####.#.#.#...###.#...#...#...#.###.#..####.#...#.#.##.#.#...###.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 450 lines

Test #100:

score: 0
Accepted
time: 40ms
memory: 28896kb

input:

1904 430
##############.##..###.###.#.#.#.##..#####.###.#.###.####.###################.#####.#.##.################.###.##########.########.#############..#.###########.#####.#####.##.###.#########..######..#######..##########.###############.#.#########.#####.#########.###.##..###...#####.##.#.##.##...

output:

##############.##..###.###.#.#.#.##..#####.###.#.###.####.###################.#####.#.##.################.###.##########.########.#############..#.###########.#####.#####.##.###.#########..######..#######..##########.###############.#.#########.#####.#########.###.##..###...#####.##.#.##.####.######...

result:

ok 1904 lines

Test #101:

score: 0
Accepted
time: 31ms
memory: 13556kb

input:

238 1950
######.#..#######.##....##..##.###..#..#..#.###..##...##..###.######...#######....#.##.##.##..#.#.##.####.#.#####..##..###..#.#.#####.#.#.#...###..#..####..#.#.##..#.......#####.##.#..#.##........#.##.##.#.#.#.##.#.#.#####.###.####.#..#######.####.#...###.###.#.#.#.#.###.#..#.#.#.####.#..##...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 238 lines

Test #102:

score: 0
Accepted
time: 3ms
memory: 11384kb

input:

527 68
####################################################################
####################################################################
####################################################################
####################################################################
#################...

output:

####################################################################
####################################################################
####################################################################
####################################################################
########################...

result:

ok 527 lines

Test #103:

score: 0
Accepted
time: 110ms
memory: 32040kb

input:

1112 1314
...##.#........#......###......#...#......#..##.#.#.......##..###.##..#..#.##..##....##..########....#....#.#..#..##.....#.........#..##...####...####...#........#...##..#..#..#.....#..#..#.#.#####..###.#..#..............##.#...##...##...###....##.#..#..#..##..#.#.##...#...#.....#...######...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1112 lines

Test #104:

score: 0
Accepted
time: 166ms
memory: 52204kb

input:

1681 1873
....#.#.#.....#....#...............###......#...#.#.................#.....#..........##.#..............#.##............#...................##.............#.......#..#..#.#..#..#..#....................#.###.........#.....#...............................#..............#..#.....#.#..............

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1681 lines

Test #105:

score: 0
Accepted
time: 33ms
memory: 14272kb

input:

353 1243
.....#...#.##..#....#.##...#...#.##....#........#...##.#####..###..#.#......#...#.#...#.##...#.###.#.#.#....#.#.##....#.#####...##.###...#....#.#..#.#.#.....###.#..#..###..........##.#.......#.#..#..........#..#.#...#..#......#...#.#...#...##..#.#......#.#..##.#.#.##.#.#.#.......#.#...#...#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 353 lines

Test #106:

score: 0
Accepted
time: 90ms
memory: 79900kb

input:

1237 1516
###.#####.######.#.#########.#####.########.#..###########..##########.#######.#####.####.##.######.#..################.###.##.###.###.#.###################.#####..#.#.#####.#############.####.####.#.#..#########..##.#.#####.####..##.###.####.#..############.##.######.###.###..###.########...

output:

###.#####.######.#.#########.#####.########.#..###########..##########.#######.#####.####.##.######.#..################.###.##.###.###.#.###################.#####..#.#.#####.#############.####.####.#.#..#########..##.#.#####.####..##.###.####....############.##.######.###.###..###.###############.##...

result:

ok 1237 lines

Test #107:

score: 0
Accepted
time: 52ms
memory: 19236kb

input:

1524 506
.#.........#.#........#.#.#..#......#..#.##.....##....#...#.....#...#.....#.#......#.##.#........##...#...#.....#..#.#..#.#...........#..#.........#.....#...........#.............##.##...##....#..##.##.#...#.###........#.#.##....#...........#..#....#.###...#..........#.#...........#...##......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1524 lines

Test #108:

score: 0
Accepted
time: 98ms
memory: 31652kb

input:

973 1474
##..###.........#.........#..................###........#.....#.#....###............#.......#..................#...........#.#....###....#.....#........###.#.#....#....#.#.........#........#..#.#...#...##.....#..##..###....#..#...#.....#......#.#....#...#..#.##...#.......#.#.#........#........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 973 lines

Test #109:

score: 0
Accepted
time: 28ms
memory: 64800kb

input:

898 1175
#############################################################################.##################################################.##############################################################.###########################################################.########################.##############...

output:

#############################################################################.##################################################.##############################################################.###########################################################.########################.#####################.#...

result:

ok 898 lines

Test #110:

score: 0
Accepted
time: 152ms
memory: 144644kb

input:

1754 1780
#...########..#####################.################################.##########.#####..#######.##..######.#####.#######.#.####.#######.#.########.###########.########.####.########################################.####.####..###########.##.#####..####..###..#######.##..##########.##.#######...

output:

....########..#####################.################################.##########.#####..#######.##..######.#####.#######.#.####.#######...########.###########.########.####.########################################.####.####..###########.##.#####..####..###..#######.##..##########.##.############.####...

result:

ok 1754 lines

Test #111:

score: 0
Accepted
time: 7ms
memory: 11784kb

input:

206 175
#####..###############.##################################.#########################.#.########.#########################################.#######################.######.#######
#############################################################.######################################################...

output:

#####..###############.##################################.#########################.#.########.#########################################.#######################.######.#######
#############################################################.##############################################################...

result:

ok 206 lines

Test #112:

score: 0
Accepted
time: 17ms
memory: 13332kb

input:

291 1362
........................................................#.........................................................................................#...........................##.#.......................#.....#...#.......................#....#............#..............#.....#...................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 291 lines

Test #113:

score: 0
Accepted
time: 45ms
memory: 18516kb

input:

1085 643
.#.#.#.............#..##......##.#.##.#.......#.....#..##.......#.......#......#..#.##.......#.###.....#.#....#..#.#...#.#...#....#...#.#....#...#.#...#...#..#....#.........#...##....#.#...##.#.#.##.#......##..#..#..#..#.....#...........##...#....##............##...##...##.###...#.#.#....##...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1085 lines

Test #114:

score: 0
Accepted
time: 93ms
memory: 106920kb

input:

1393 1629
###.########.###.##.##..#####.#.####.##.######.#.####.###.##.#######.##############.#.#.##########..###########..#######..#########.##.########.#.#.######.###.###.###########..#######.###.#########.#############.#########.####################.#############.##..###.########.########.##.####...

output:

###.########.###.##.##..#####...####.##.######...####.###.##.#######.##############.#.#.##########..###########..#######..#########.##.########.#...######.###.###.###########..#######.###.#########.#############.#########.####################.#############.##..###.########.########.##.#########.####...

result:

ok 1393 lines

Test #115:

score: 0
Accepted
time: 16ms
memory: 15452kb

input:

563 1315
..........#..#.....#..................................................................#...#.................................#..........................#......................#...........................#........................#..................................................................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 563 lines

Test #116:

score: 0
Accepted
time: 61ms
memory: 23208kb

input:

1083 923
..#........#........#....#....#....#..........#.#...#.#...#.......#..#........##......##.....#..#.#...#....##.#.............................#..........#.....#.#....#.....#....##........#.....#.#.....#...##......#.##......#.#......#.#.........#...#.....#...........##..#.........#..#.#....#.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1083 lines

Test #117:

score: 0
Accepted
time: 80ms
memory: 128760kb

input:

1628 1507
#########.####################.################..#############################.###########..##############.######################.############################################.#######.###.#.##.#########.################################.##..###.########.######.###################.########.##...

output:

#########.####################.################..#############################.###########..##############.######################.############################################.#######.###.#.##.#########.################################.##..###.########.######.###################.########.###########....

result:

ok 1628 lines

Test #118:

score: 0
Accepted
time: 71ms
memory: 94916kb

input:

1061 1674
###.#########################################.#.###.###################..########.############.####..######.##.#################################################.##################.####################.########################.########################.##.###############################.####...

output:

###.#########################################.#.###.###################..########.############.####..######.##.#################################################.##################.####################.########################.########################.##.###############################.####.#########...

result:

ok 1061 lines

Test #119:

score: 0
Accepted
time: 35ms
memory: 15732kb

input:

1324 400
..##...#..........#..#..##........#......#........#.....#.....#......#....##..#..##..#.#...#.#....##........#....#.##..#.......................#.....#.#..............##...#...#......#...#...#..#####.....##.......#.........#.#....##..#....#.##..#..#....###.......#.#....#....#...#........#.#....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1324 lines

Test #120:

score: 0
Accepted
time: 44ms
memory: 73376kb

input:

1206 1185
#######.######.##############.#######.###.#####.#####..###.##.############.####.################################.###.###############.#######.#################################.#.#################.############################.##########.######.#########################..###.##.##############...

output:

#######.######.##############.#######.###.#####.#####..###.##.############.####.################################.###.###############.#######.#################################.#.#################.############################.##########.######.#########################..###.##.########################...

result:

ok 1206 lines

Test #121:

score: 0
Accepted
time: 13ms
memory: 16656kb

input:

98 1743
########.#####.#####################.#.####################.##.##.######################.##.####.#####################################.###########################################.#####.############..#####################.###.#########.#.#########################################.####.########...

output:

########.#####.#####################.#.####################.##.##.######################.##.####.#####################################.###########################################.#####.############..#####################.###.#########.#.#########################################.####.############..##...

result:

ok 98 lines

Test #122:

score: 0
Accepted
time: 8ms
memory: 10380kb

input:

1172 39
.##.####..##........#...#..##.#.....##.
.#............##..#...##.#.####....#..#
..#..#....#....#.....##..#..#.##..#.#..
#..#...##..#.#..#.......#....###..#.##.
####...#....#...#.##.#..#....#..#.#...#
..#.#..#.#.##..##....#.#.#...#.....##.#
.#..#.#...##.#.###..#.####..###...#....
....#...#.#....

output:

.......................................
.......................................
.......................................
.......................................
.......................................
.......................................
.......................................
.......................

result:

ok 1172 lines

Test #123:

score: 0
Accepted
time: 69ms
memory: 48128kb

input:

1599 967
#####.########.#..###.#..######.###.###.#.#.######.....######.##########.##################.###.#...#.##.#.####.#.########..#..#######..####..#..###.##.#.#########.##.###.####.##..#################.#########.####..####..########..########.###########...##..#.###.###.###..####.####..########...

output:

#####.########....###.#..######.###.###.#.#.######.....######.##########.##################.###.#.....##.#.####...########..#..#######..####..#..###.##.#.#########.##.###.####.##..#################.#########.####..####..########..########.###########...##..#.###.###.###..####.####..########..##....#...

result:

ok 1599 lines

Test #124:

score: 0
Accepted
time: 13ms
memory: 11532kb

input:

567 301
.#..#.#.#.........#.#......#...###...................##.#...................................#......#..............#........#.#..........#........##......##...##.##.#...#.....................#..........#.#........................#....#.#..#.............#......#......#......##..........#.........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 567 lines

Test #125:

score: 0
Accepted
time: 150ms
memory: 40428kb

input:

1701 1684
##..#..##.##.######.#.##.#.###...#.###.#...#.##.##.##..#..#...#.#.#..#...##.#.###..##.###.#....###.###..#.#.#.###..#.###.###.#####.#.##...#....#.############..#.....##.#.#.##..#..#.#####..####..##..#..#.##.###..##.########.#.###.#.##.####.##.##.##.#.####..###.####.#..#####........#.#######...

output:

..........................................................................................#....###.###...............###.###.#####.#.##...#.................................##..#..#.#####..####..##.......##.........########...###...##.####.......##...####..###.####.................#.########...#........

result:

ok 1701 lines

Test #126:

score: 0
Accepted
time: 56ms
memory: 96680kb

input:

1502 1144
########################..####################################.########################.##############..##.####################################.##############.#######.#################.############.####################################.#############################################.#########...

output:

########################..####################################.########################.##############..##.####################################.##############.#######.#################.############.####################################.#############################################.###################...

result:

ok 1502 lines

Test #127:

score: 0
Accepted
time: 136ms
memory: 35292kb

input:

1193 1660
##.##.....####.#.#.#...##.....##.####.#.##.#.#.#..#....#.###.##.##.#..#...#.#.#.#......#...##.##.....###....##....#...#..#...........###..#.##.###.##....#...#.....###..#.##..##.#.#.........#.#..####...#.#.#..#.#.##...#..#.####.#..###..#.####.....####.###..#...#.#.#.##.#....#.##...##..........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1193 lines

Test #128:

score: 0
Accepted
time: 134ms
memory: 31792kb

input:

1048 1977
##..###........#..##....##..#..#.#####.###..###..#..##.###......###..#....#...#.##..#######.##.#..#.....#...##..#.#.#####.#..##.#####.....#...#..##.#.#.......##...........#..#...#############.#.#......#.###....####.#..##..#...###..##.#.........####.######...#.#...#...#.....####...###..#..#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1048 lines

Test #129:

score: 0
Accepted
time: 102ms
memory: 30304kb

input:

1410 1074
.#.##..##.#.####.#..#....####.........#...###...#..#.#....#..###....#..#.#...#..#.#.....#.##..........##...#....#...###..##.#.#..####.#.###...#.....#.#......##.#.##.##.......#...#.......##.....##.#..#.#.#..#.##.##.#.....###..##..#.#.#.#......#..#...#..###.....#......#....###.......###...##...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1410 lines

Test #130:

score: 0
Accepted
time: 39ms
memory: 76756kb

input:

1578 774
###########################################################################################################################.################################.##################################################.###############################################.##############.############.#######...

output:

###########################################################################################################################.################################.##################################################.###############################################.##############.############.################...

result:

ok 1578 lines

Test #131:

score: 0
Accepted
time: 19ms
memory: 17376kb

input:

1228 1583
.....................................................................................................................................................................................................................................................................................................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1228 lines

Test #132:

score: 0
Accepted
time: 100ms
memory: 94824kb

input:

1547 1309
########.#####.######################################.##########..##.#####.##########.###.#######..#.###.#######.###########.#############.##################.#.#.#######.#######################.##.#####.######.###.##.##.################.#######################.####.##.###..##############.#...

output:

########.#####.######################################.##########..##.#####.##########.###.#######..#.###.#######.###########.#############.##################.#.#.#######.#######################.##.#####.######.###.##.##.################.#######################.####.##.###..##############.###########...

result:

ok 1547 lines

Test #133:

score: 0
Accepted
time: 64ms
memory: 18744kb

input:

646 1222
##.#..#..##....#.#...#.#.#....#....#.###...#....#...#..#..#####....##..#...###.#.....#..#.#.#.#.#.#..#..##...#..##.#......###..##....#..#.#..##...#...#.##..#.....#.##.......#..#...#..##.#......#..#...#.#.##....###..##...#.##.##...####...#...#.#....##....#...#####.#..##.......####.#.#.###..#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 646 lines

Test #134:

score: 0
Accepted
time: 150ms
memory: 37700kb

input:

1658 1174
.....#......##...#........#.##...#.......#.#....#...............#.#....#...........#.#..##......#.##.......#...###..##.#...##....#..#.#.....#....##.#........#.#....#...##...#.....#.#.#..#.#....####...#..###.#...##....##...#..#.......#.#...#......#.......#.#.#.###.........#..##.#..##....#.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1658 lines

Test #135:

score: 0
Accepted
time: 3ms
memory: 11640kb

input:

275 337
##.#.##.####.######..#....#######.######.##.####.##...##.###########.#.###.#..#####.#######...#####.#########.####.#######.###.####.##.##.#..###..#.######..###.####..#####.#####...#########.#.########.#.....#..####.########.###.#.#.#.#.##.##..####...##..#.#.#######..#.##...####..##.##.#.#.##...

output:

........####.######...............######.##.####......##.###########...###.#..#####.#######...#####.#########.####.#######.###.####.##.##.#..###..#.######..###.####..#####.#####...#########.#.########..........####.########.###.#.....#........####...##..#............#.##...####..##.##.....##########...

result:

ok 275 lines

Test #136:

score: 0
Accepted
time: 9ms
memory: 10212kb

input:

635 107
..##..##.####.##...#.#....##....##.###..###...##..#.##.#.###...##.#.#.######.##..###.##..#..####.#..##.#.##
.#.#####..#####.#.##.#.#####.#...####...#..#.##.##....####...#.#..##.##.#..##.######...#..####..##..##..###
..###.#..#..#.##.#.#.##..#.##.####.##.#...########....####.####.######.####....

output:

...........................................................................................................
...........................................................................................................
.......................................................................................

result:

ok 635 lines

Test #137:

score: 0
Accepted
time: 15ms
memory: 16784kb

input:

1684 168
########..#.#.####.#########.#######.#.#.#..#####...#######..###################.#.######..##.#.###.##.#.##.##...#######.#.####.#.#.#.#.###.##.#.###.#####.######.###.##
##.##..#.###.###.#.###..######.#....#.#.###.##.##.###.###.#.#.###.######...#############...#####.#####..##.###.####......#...

output:

########..#...####.#########.#######.....#..#####...#######..###################.#.######..##.#.###.##...##.##...#######.#.####.#.#.#.#.###.##.#.###.#####.######.###.##
##.##..#.#######.#.###..######.#....#######.##.##.###.###.#.#.###.######...#############...#####.#####.###.###.####......#.########...

result:

ok 1684 lines

Test #138:

score: 0
Accepted
time: 5ms
memory: 9916kb

input:

245 43
.#...##.#####.#.#.###.#.##.#..###...#.#.##.
##..####.#.##....####.###...##....##.######
#..#.#.##..###.##.#.#..###.##..#.###...##.#
####.#.#.#####..#####...#..##########...###
..#####.##...######..############..####....
..#..######..#.###...######...#..#.####.###
#.###########.##..#.##.##.##....

output:

...........................................
...........................................
...........................................
...........................................
...........................................
...........................................
.......................................

result:

ok 245 lines

Test #139:

score: 0
Accepted
time: 75ms
memory: 34768kb

input:

1174 1503
##..###.###..##.#..#.#.####.###.###.##.#.####.#.#.###.#....###..###.#...#.###...#.#####...#..#.#####...###..#.##.###.#######.##.##.###.##.######.####.###.#.########.#...###.###..#######...######.#.####...##.#####.#.##...#########.###...#.####.####.#....#.##.#..##.#####.######.#.#.##.#.####...

output:

....###.###.................###.###.##.#.####.#.#.###.#....###..###.#...#.###...#.#####...#..#.#####..........##.###.#######.##.##.###....######.####.###.#.########.....###.###..#######...######...####...##.#####...##...#########.###.....####.####.#......##.#.....#####.######.#.#.##...############.#...

result:

ok 1174 lines

Test #140:

score: 0
Accepted
time: 34ms
memory: 32812kb

input:

1916 452
######.#.#######.#########.#..##.###...#######.#.###.####.####.#####.#######.#######.#########...######.######.########.#.###.###.#################.#########.###########.####...#########.#.##########.#######.##.###.#########.#######...#######..#######.##.###.###.###.#########...############...

output:

######.#.#######.#########.#..##.###...#######.#.###.####.####.#####.#######.#######.#########...######.######.########.#.###.###.#################.#########.###########.####...#########.#.##########.#######.##.###.#########.#######...#######..#######.##.###.###.###.#########...############.########...

result:

ok 1916 lines

Test #141:

score: 0
Accepted
time: 14ms
memory: 13700kb

input:

691 285
.#.#.###.###########..####.########.#.#####.#..############.####.##.#..#.#.##..########.##########.#########.##.##.##..#.##.##..##.....######.####.#.##.##.#..###.#####.######.#.##.#.##.#####.########.##.#.##.##########.####.###.##.##..##.###########..###.#...#.##.###.##..##..###.#####
.##.##...

output:

.#.......###########..####.########...#####.#..############.####.##.#....#.##..########.##########.#########.##.##.##....##.##..##.....######.####...##.##.#..###.#####.######......#.##.#####.########.##.#.##.##########.####.###.##.##..##.###########..###.#...#.##.###.##..##..###.#####
.##..####.###....

result:

ok 691 lines

Test #142:

score: 0
Accepted
time: 6ms
memory: 10192kb

input:

433 162
..........#.#....................................#.......#...................#...........................#....#............#......#.#......#......................
.......................#...........#................#..............................................#..............#..#..............

output:

..................................................................................................................................................................
............................................................................................................................................

result:

ok 433 lines

Test #143:

score: 0
Accepted
time: 101ms
memory: 155364kb

input:

1712 1611
###################.######################################.##.#############.###########.###############################.##############.####.############################.##########################.################.####.##############.#########################################################...

output:

###################.######################################.##.#############.###########.###############################.##############.####.############################.##########################.################.####.##############.###################################################################...

result:

ok 1712 lines

Test #144:

score: 0
Accepted
time: 89ms
memory: 26180kb

input:

834 1978
.######.#####.#######.#####..##.#...#.#.#..###.#..###.##.#....#.#...###..#....###..#...####.#..#.##.....#.#...##..#.#####.#..##..#.#......#...##...#.#####..#..########..###.#.#.##.#...######.....###..###.#.##..##.####...###....#.#.#.##.##...#.##.####.#####.#..#.#####.#####....#.#..###.###.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 834 lines

Test #145:

score: 0
Accepted
time: 17ms
memory: 12120kb

input:

190 1334
..##.#########.####.###.#.####..#.#..####.####.####..###...##.#.##.#.#####.####.###..#####.#.#####..#.#######.#.##..########.##...#######..#####..##.#####....########.#...###########.#..#.#.##..#.##.###.##.##..#.####.###.#...####.#.###.###....##..###..#..#.#.##..#######.####...#....#..###.....

output:

....................###.#.####..#....####.####.####...........#.................###..#####.#.#####....#######.......########.##............#####.....#####....########.....###########......#.##..#.##.###..........####.###.#..........###.###....##.......#..#.#.##..#######.####...#....#..###...##..##.#...

result:

ok 190 lines

Test #146:

score: 0
Accepted
time: 62ms
memory: 93104kb

input:

1296 1333
######.##############################################################.###.###################################################.###############################################################################.##########.#########.#.###.#########.############.###########.#####.################...

output:

######.##############################################################.###.###################################################.###############################################################################.##########.#########.#.###.#########.############.###########.#####.################.##.##.##....

result:

ok 1296 lines

Test #147:

score: 0
Accepted
time: 6ms
memory: 10360kb

input:

756 32
###..##.##..#.######.###########
##.#########.##..###..##########
#..#...##.#####.#.#####.########
#.#.#########.##########..####.#
.########.###.####..###.##.####.
##.####...#.#.###.###...########
....####.############.####.####.
########.####.##.##.#...##.###.#
#.#.###############.####.####...

output:

.....##.##....######.###########
###############..###..##########
##.#...##.#####.#.#####.########
#.#.#########.##########..####.#
#########.###.####..###.##.####.
##.####...#.#.###.###...########
....####.############.####.####.
########.####.##.##.#...##.###.#
#.#.###############.####.#####.#
#.#...

result:

ok 756 lines

Test #148:

score: 0
Accepted
time: 12ms
memory: 16332kb

input:

1474 151
.###...#.######.#.##################.#..##############.###..#.#.##.####.#########.###.###.####.#.##..########..###.#.####.#.#..#.############.####.###.
####.####.###.#.##...#.#.##########.##.######.###.#.##.##.####.#########.####.#####..###.#######..#..####.######..###.########..####..#.###...

output:

.###...#.######.#.##################.#..##############.###..#...##.####.#########.###.###.####.#.....########..###.#.####.#.#....############.####.###.
####.####.###.#.##...#.#.##########.##.######.###.#.##.##.##############.####.#####..###.#######.##..####.######..###.########..####..#.###..###.......

result:

ok 1474 lines

Test #149:

score: 0
Accepted
time: 56ms
memory: 19464kb

input:

752 1199
#...##.#.##.#..###....###.#.#..##...#..######.#.#.#..##.....###..##.....#.###.#...#...#.##..###....#.##.####.#..#.#..#.##.#####.###.#.#.#.#..#.#...######..#..#.##.......####.#..####.##.#.#..#..#..#.#..####.####.#####.#..##.#..##..##.##.#.#..###.....#.##.####..###...##.##.#..#.#....#...#.#.#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 752 lines

Test #150:

score: 0
Accepted
time: 52ms
memory: 19576kb

input:

1640 482
#..#.#.##...#..#..#..##..####..#...##...#......#.###......###......####.###.##...#......######...#..#..#.#.......#..#...#.#...#..##.#....#...#..#..#.#...##.#...#...###...#.#..#........#.........##...#..#.......#...#..#.#.#...#..#.##..#.###.#..#.#.####...##..#..#.#.#.###.......#.#.##.#....##...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1640 lines

Test #151:

score: 0
Accepted
time: 35ms
memory: 25968kb

input:

1655 453
##.#######..###..##.##..##.###.###...#####.####.###.##..##..#########.########.#####.#.##.#########.##...####..##############...################.###.####.##..#...#######.##########.####.#####.########...##..####..#..###.#.######.####.####.#####.########.###.#..###..###.#####.#####.#...###.#...

output:

##.#######..###..##.##..##.###.###...#####.####.###.##..##..#########.########.#####...##.#########.##...####..##############...################.###.####.##..#...#######.##########.####.#####.########...##..####..#..###.#.######.####.####.#####.########.###.#..###..###.#####.#####.....###.######..##...

result:

ok 1655 lines

Test #152:

score: 0
Accepted
time: 2ms
memory: 10092kb

input:

1424 4
..#.
#..#
#...
..##
...#
#..#
.#.#
.#..
....
#..#
..#.
...#
.##.
....
.#..
..##
.#..
...#
...#
###.
##..
.##.
...#
#..#
##..
.#..
...#
....
..#.
..#.
#.#.
#..#
.###
#...
#..#
##..
##.#
#...
.###
.##.
....
.#..
..#.
.#..
#..#
##.#
.#..
..##
.##.
.#.#
###.
#..#
#.##
.#..
....
..##
###.
...#
.#....

output:

....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
...

result:

ok 1424 lines

Test #153:

score: 0
Accepted
time: 54ms
memory: 91328kb

input:

1177 1377
##############.###.####.######################.######################################################.######.########################################.##################################.#################.#######.#######.#####################.#################.#####################.#########...

output:

##############.###.####.######################.######################################################.######.########################################.##################################.#################.#######.#######.#####################.#################.#####################.###################...

result:

ok 1177 lines

Test #154:

score: 0
Accepted
time: 7ms
memory: 10052kb

input:

37 970
#.#..###...###..##..##...#.#.###.#..###..##...####..###..#...##..#.#.####..#####..#..#...#######..##.####.###.###.#.#.#.##.#.#..##..#.##..###..####..#.#.#####.######.#.##.#######...###.##.#.##....#.#.######.######.##..#..#.#..#.#####.##..#..######...###...##..#######.##.##..###.##.#.#..#.####...

output:

...........###..##..##...#...###....###..##...####..###..#............................................................#.##.#.#..##...................#...#####.######.#....#######...###.##...................................................#..######...###...##..#######.##.##..###.........................

result:

ok 37 lines

Test #155:

score: 0
Accepted
time: 43ms
memory: 63132kb

input:

1166 945
..#######.########.########################################################################..#..#######################.#####.#########.########.###.######################.######################.#####.##############.######################################.####################################...

output:

..#######.########.########################################################################..#..#######################.#####.#########.########.###.######################.######################.#####.##############.######################################.######################################.######...

result:

ok 1166 lines

Test #156:

score: 0
Accepted
time: 3ms
memory: 10312kb

input:

208 931
..............................................................................................................................................................................................................................................................#............#...........................

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 208 lines

Test #157:

score: 0
Accepted
time: 56ms
memory: 20188kb

input:

924 909
.##..#.####...##....#..##.#..###.#.#.###....#.##.#..##.#....#.#.#.#...###.#.....#.###.##.##.#..##.##..#...##.#.###..#####.....#####....##..##.#..#.##.#.#.##...#.#.##.#..##.####.........#....#######.#.#...#..###..####.#...#...##.#.##..#.#.#####.#.##.####.#.....#.####.#......#....#..##.###...#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 924 lines

Test #158:

score: 0
Accepted
time: 0ms
memory: 11100kb

input:

172 705
......##..........#...#...#....###.....#...#.##.#.#..#.##...........#....#............#.###......###.#..#.##.##.##...##............#...##......#.#.................#.....#....#...####.#....#......#.......#...#.#.#.##..#..#...............##....#...............##...#....#............#.......#.#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 172 lines

Test #159:

score: 0
Accepted
time: 31ms
memory: 17940kb

input:

365 1386
#######.##...#.#.######....#..#..#..#..#.######...##...######..#..###...#...#######.#####..###.##.#.#..#.##..#.#..###..#.###.##.#.#..#####..#######.##.#.#############.#..####.#############.#.###.#.#####....####..###.####.#.##.##..#.####.######..#.##..#######.#.#.....###.##.#.##.##.######..#...

output:

#######......#.#.######..........#..#....######...##...######..#..###.......#######.#####......##........##..#.#..###..#.###....#...........#######.##...#############....####.#############...###.#.#####....####..###.####.#.##.....#.####.######........#######.#.......###....................#####.###....

result:

ok 365 lines

Test #160:

score: 0
Accepted
time: 28ms
memory: 17368kb

input:

1919 477
..#........#..........#..#.#..........#.................#.......................#...#.................#....#............#...#...................................#..............#.#..................#........#.....#..........#.............................#.......................#...........#.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1919 lines

Test #161:

score: 0
Accepted
time: 5ms
memory: 9868kb

input:

19 573
.......#.......#............#..............#...........#..#..............................#..............#.#...............##....................#.....#.......#..............#.....#......#.............#..#....#............................#...##.#..................#.......#..............#.........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 19 lines

Test #162:

score: 0
Accepted
time: 15ms
memory: 11392kb

input:

131 1183
##...#.#...####....#.###.#..#.###..#.#.....#...##..#.#..##..#...##......#.#...##.##...#.#..#.##........#...#.#..#.#.#.#.....##.#...#....#.##.##......###.#..#.#.#.....#.#.#.....#.###..#...#.#.##....#.#..#....#.##.##.....#..#....#..##..###...#.####......#...#..##..##....#..#...####...#......#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 131 lines

Test #163:

score: 0
Accepted
time: 37ms
memory: 14220kb

input:

759 706
#.##...#..#..#.#..#####.###.##..##..##.#.#..#.##.#####...##......##.#..##...##.#..#...##..#...#####..#..###..##....###.##.######...##...######......##.#.#.#....##...#####......##.####.....##.#..##...##.#####.#....#.##.##.#.#..##..#..#..#.#..#..###.....##.#.#..####..#.##.#.#.#####......#####....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 759 lines

Test #164:

score: 0
Accepted
time: 39ms
memory: 18468kb

input:

1184 539
.....##.##...#.......#.##.....####..#.###.....#...#......#...#####...#........#...#.......#.....#........#....#.....#....#...#....#....##.....#..#.#...#..#.##...###.##.##.#...#.#.##..##..#....#..#.......#...#............#......#...#...#.#..#..#.#..###....#..#...#.#.###..........##..##..#......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1184 lines

Test #165:

score: 0
Accepted
time: 65ms
memory: 20036kb

input:

522 1991
...#.##.#.####.#.########.#...##..#########....####.##.#...#...##.######...#.###..####..#.####..#..#####.###.#.#....######...#######.#.###..#.#.##..###..#..#####....#.##.#....#.#####....#..##.#..###.#..######.....###.#.###...#...##....#.#.##.###.###.##...###..###..##.#..##.....#..###.##.##....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 522 lines

Test #166:

score: 0
Accepted
time: 73ms
memory: 22920kb

input:

657 1395
#.................##....#..##....#..#...#.#..#.....#.#..##....#...##..##.#..#..#......###......##..#..#....###.#...........#..##....#....##.....#....#..#.......#.......##......#.##..##...##..#.#..###.###.#.....###..#.#.#..#..#.##....#......#..###..#.#..##..#..#.#.##..#.#.#...##..#.##..........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 657 lines

Test #167:

score: 0
Accepted
time: 134ms
memory: 39112kb

input:

1871 1236
.......#...#....#..............................#.......#...#...#.......#........#........#...................................#..#.#......#.....#.......#........#...............#.....#..#....................#.....#.##..........#....#.......#...........#...#......#.....#...#...#.....#..........

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 1871 lines

Test #168:

score: 0
Accepted
time: 42ms
memory: 15708kb

input:

717 1040
####..#.#.##...####.#.###########...#.##.###.#.#...####.#..##.####..######.#####.#.####.##.########...#..##..#.#..###.##.#.##..#######..####.#..###...######...#...##.###.###.#.###.#.#...######..##.....####.#.#.###..#####..##.##.##.#.#.######.#...#....#.#.####..#########.#...###.####.##.#......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 717 lines

Test #169:

score: 0
Accepted
time: 7ms
memory: 14612kb

input:

99 1101
######################.####.############################.###.#######.#.############.###.######.##############..##.#############..###.##############...###.###########.#################.#####.#################################.####.#######.##.######################.###################.#########...

output:

######################.####.############################.###.#######.#.############.###.######.##############..##.#############..###.##############...###.###########.#################.#####.#################################.####.#######.##.######################.###################.################....

result:

ok 99 lines

Test #170:

score: 0
Accepted
time: 109ms
memory: 31148kb

input:

727 1961
#...#.#....###...##..#.#...##....#.#.##..##..#...#.#.........#.##.##..#....######.....#..#....#.#....#.###..#....##....###....#.....#.#..........##......#..#.....#..#.###....#.#.##.##.#...#.##.##....####..#......#.##.#...#..###...##..##.##..#.........#.#...#..#.#..##...#.#...#..#......#.......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 727 lines

Test #171:

score: 0
Accepted
time: 57ms
memory: 18356kb

input:

960 1136
.###.##.##..##..##.#..##...###.###.####.#.#...##.#.#.#..#.#.######..####..####.###..#######....####.##..##.##.##.#.#####.###.##.#..###.###.#.##.####.#..#..##...####..##.#.#######.#........#..#..####....##.##.##....#..#..#..#.###.#..########.###.#.#####..##.####.###..#####.#..##.###.###..##....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 960 lines

Test #172:

score: 0
Accepted
time: 22ms
memory: 12164kb

input:

1583 168
###.#.#...#..#.....###.####...###.#.##....#...#..##.#..###..##.###..#.#.##.#.#..#...#.#..####.####..####...##.######.##..#.#.#.#.#.....#..#.##...##..##....#....#..####.
..##.#.#######.###.##.##...#.##..########...####.###.###..#####.#...........##..###...#...###.#.##......#.##.####.#.###..#...

output:

........................................................................................................................................................................
......................................................................................................................................

result:

ok 1583 lines

Test #173:

score: 0
Accepted
time: 36ms
memory: 34072kb

input:

807 1041
###.####.#.##########..#.####.##.##########.#######.#####.###.#.########.########.#####.##.#.##.##..#########..#.#######.#.##############.################.####.########.##.###..###########....#######.#####.#.#####.##.##########.##.##.#.##.####.#..##.#..#######..#####..####.##.#.####.###.###...

output:

###.####.#.##########....####.##.##########.#######.#####.###.#.########.########.#####.##.#.##.##..#########..#.#######.#.##############.################.####.########.##.###..###########....#######.#####.#.#####.##.##########.##.##.#....####.#..##.#..#######..#####..####.##...####.###.#####.######...

result:

ok 807 lines

Test #174:

score: 0
Accepted
time: 74ms
memory: 92704kb

input:

1072 1853
#############.#.###.##.######.#.#####################.#############################.####...###.##.##.###..##.#########.########.####.##.#.#######.###.###.##########.####.#########..######.#######...##############################.#.###.#.###########.################.##.########.####...#####...

output:

#############.#.###.##.######.#.#####################.#############################.####...###.##.##.###..##.#########.########.####.##...#######.###.###.##########.####.#########..######.#######...##############################.#.###.#.###########.################.##.########.####...###############...

result:

ok 1072 lines

Test #175:

score: 0
Accepted
time: 234ms
memory: 64240kb

input:

2000 2000
.....###.........#.#.....##.......#...........##....#..#.......#...#.....#..#...#......#..............##.#..#...##......#....##..#.#.....#.#..##.#............#...........#..#.....#..#.......#...#..#....#.#.##..............#..#...#...##.......#..#.......##...#..#......#.................#......

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 2000 lines

Test #176:

score: 0
Accepted
time: 296ms
memory: 69840kb

input:

2000 2000
.#..#....#.#.##..##.#.#...#####..#.....#.....##.....#...#.#..#....##..#...##.#..####..#..#....###......#.......#...#.......##.#...###......#....#...###.#.....###.#.#.##...#..#.#....#......#.#..#..#..##......##..#...#.#....##.#...#..#......##....#.....##..####.#..##...........#.#..##....#.....

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 2000 lines

Test #177:

score: 0
Accepted
time: 231ms
memory: 47604kb

input:

2000 2000
.####.#####..####..####..#####.###.#.#####.##..#.#..#.####.###########....###...#..#.####.#.##.##.#..######...#.#..#..##.##.####.######......#.#...#.####.#..##...#.#....#.####.###.#.#.###....###.########...##.###......#....#...#.###.####.#####...########..##.##.##.####..##..#.##.#....#.###...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 2000 lines

Test #178:

score: 0
Accepted
time: 157ms
memory: 231432kb

input:

2000 2000
#########################################################################################################################.########################################.###########################.###################################################################################################...

output:

#########################################################################################################################.########################################.###########################.#############################################################################################################...

result:

ok 2000 lines

Test #179:

score: 0
Accepted
time: 221ms
memory: 44220kb

input:

2000 2000
.######..####.#.##.##.##.#.####.####.#.##..#..#.#.#.####.##...#.#.##....#..##...##.###.##.#....#..........###..###.#.#######..####.....#.#.###.#...##..##..###.#.#.###.#.#####.####.##.#....###.##..##.##.###.....#.#....###...######.....######.##...#.##.#.#.#.##.###.....#.####.##.##....##.#.#...

output:

...............................................................................................................................................................................................................................................................................................................

result:

ok 2000 lines

Test #180:

score: 0
Accepted
time: 156ms
memory: 196368kb

input:

2000 2000
#.#####.##.###########################################.#####################.#############.######################.############.######.#################.#########.##########.##.##########.###########.#######.###.##################..#################.####.##.######..#.#######################...

output:

#.#####.##.###########################################.#####################.#############.######################.############.######.#################.#########.##########.##.##########.###########.#######.###.##################..#################.####.##.######..#.#######################.###.#####...

result:

ok 2000 lines