Solve it with 3 lines

2 secs 1024 MB
first_vil's icon first_vil

1_sample_2.txt


入力

出力