/*⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣟⠛⠛⠻⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡶⠾⠟⠛⠋⠀⠀⠈⠿⣦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣤⡶⠶⠶⣦⡄⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡶⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⢶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⠟⠁⠀⠀⠀⠀⠀⠈⣿⡄⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⡤⠒⠒⠂⠤⣤⣤⣤⣤⣤⠶⠶⠶⠶⠶⠶⠶⠶⠶⠶⠿⠋⠀⠀⠀⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠙⠛⠛⠛⠛⠛⠷⢶⣤⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡀⣀⣸⣟⠀⠀⣿⡟⢛⣿⡀⠀⣾⣧⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣠⣤⣴⠶⠶⠾⠛⠛⠛⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣶⣿⣿⢿⣿⣿⣷⣦⣄⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠈⠙⠛⢷⣤⣀⠀⠀⠀⢀⣠⣴⠾⠟⠛⠛⢛⠛⠛⠀⠀⣿⡅⢢⠸⡇⠀⠀⣿⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣿⣿⠿⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⠟⠉⠀⠀⠀⠈⡙⢿⣿⣿⣦⣀⣠⣴⠟⠻⣷⡄⠀⠀⠀⠀⠀⠀⠀⠈⠛⠛⢶⣶⠟⠉⠀⠀⣀⣴⣿⣶⣦⣤⣄⠀⠸⣯⠐⡂⡇⠀⠀⣿⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡾⠟⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣤⣤⣤⣶⣶⣶⣾⣿⣿⣿⣿⣷⣶⣶⣶⣦⣤⣤⣀⡀⠀⠀⠀⣴⣿⣿⠟⢁⣀⣤⣶⣶⣾⠿⠿⠿⠿⠿⠋⠀⠘⣿⣬⣡⣿⡟⠀⢀⣀⣀⣤⣴⣶⣦⣤⣀⠀⠉⠀⣠⣶⠿⢻⣽⣯⣅⠢⡉⣿⡀⠀⣿⣦⣵⡷⠀⠀⣿⡀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣴⠾⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣤⣶⣶⣿⣿⣿⣿⠿⠿⠟⠻⠛⠛⠛⠉⠉⠉⠉⠉⠉⠉⠙⠛⠛⠻⠿⠿⣿⣿⣶⠿⠟⠋⠁⠀⠀⠉⠀⢀⡀⣀⣀⣤⣀⣀⠀⠀⠀⠀⢸⣯⢻⣷⣆⠀⠨⣿⠩⣉⢳⣶⣦⢉⠻⣷⡄⠀⣿⡏⢰⣿⠁⠀⢻⣧⠘⢻⡇⠀⢨⣧⣿⣧⣀⠀⢹⣧⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣴⠿⠋⠁⠀⠀⠀⠀⠀⠀⠀⣀⣀⣠⠻⣿⣿⠿⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⡀⠀⠀⠀⣠⣠⣴⣶⠿⣶⣆⠠⣿⡟⠛⡛⣻⣝⠛⠿⣦⡀⠀⠈⣿⡄⢸⣿⠀⠀⣿⡇⠰⣧⠈⢻⣧⢂⠹⣿⠀⢻⣷⡀⢿⣦⣠⣼⡷⢈⣹⣇⠀⢿⣿⣤⣻⣿⠀⠀⣿⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣶⠿⠋⠁⠀⠀⠀⠀⠀⣠⣤⠴⣾⡟⡛⣿⡇⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⠀⠀⠀⠀⠀⣀⣴⡾⣟⣛⣛⠻⣶⣄⠀⢻⣏⠰⢠⣾⡿⠃⠀⢸⣇⡑⣾⡈⠻⣿⠠⠹⣿⡀⠀⢻⣇⠂⣿⡇⠀⣽⡇⢡⣿⠆⠀⢿⣇⢂⢻⣧⡀⠛⢿⣶⣿⣽⣿⡄⠡⢼⣿⠀⠈⠻⣿⠛⠁⠀⣰⡿⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⠀⠀⠀⠀⠀⢀⣠⡾⠋⠁⠀⠀⠀⠀⠀⣠⣶⠟⠋⠁⠀⣿⡗⡐⢿⡇⠀⠀⠀⠀⠀⠀⠀⢠⣤⣴⣶⢿⠿⠟⣛⠛⣛⠛⣿⣦⡀⠀⢰⡿⣻⣾⠟⠛⠻⣧⢊⣿⡆⠘⣷⣈⠹⣿⠀⠀⠀⢸⣧⡐⣿⡇⠀⢻⣧⢁⢻⣧⠀⠸⣿⡠⣹⣷⢀⣾⣿⣦⣿⡇⠀⠈⢻⣷⡾⠟⠁⠀⠀⠈⠉⢁⣾⡏⣱⣿⠇⠀⢰⣤⣿⣂⣶⣾⠟⠁⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⢀⡀⣀⣠⣤⣶⠾⠿⠛⠋⠙⠙⠛⡿⣷⣶⡾⠛⠉⠀⠀⢀⣀⢀⡀⠐⠟⠋⠀⢀⣤⣶⣿⣿⠃⠜⣸⡇⠀⠀⠀⠀⠀⠀⠀⢹⣯⠐⣤⠺⣿⡖⡈⣾⠘⣷⡦⢙⣧⠀⢸⣏⠻⣿⡄⠀⣀⣿⠢⣼⡇⠀⣿⡆⡑⣿⡄⠀⠀⢸⣿⣧⣹⣷⠀⠈⢿⣶⣮⣿⣧⣼⢿⠿⢟⣻⣏⣉⡉⠉⠀⠀⠀⢾⣧⡀⠀⠀⠀⠀⢰⣿⣿⣿⣽⣶⠟⠁⠀⢠⣿⡿⠛⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢀⣴⣶⠿⠟⠛⠿⠛⠟⠋⠁⠀⠀⠀⠀⠀⣀⣤⣤⣋⠉⠀⠀⠀⣠⣶⡿⢿⣛⡻⢿⣦⡀⠀⣼⡟⢩⣴⠿⢿⣮⠐⣹⣷⠀⠀⠀⠀⠀⠀⠀⠸⣿⡄⣻⡆⢸⣿⡴⢻⡆⠹⣷⠂⣽⣧⡈⢿⣶⣈⠿⣿⣿⣿⣼⠟⠁⠀⢸⣷⣷⣿⠇⠀⠀⠀⠛⠛⠛⠛⢧⣤⡀⠈⠉⠉⣩⣴⣤⣷⣮⣿⣿⣿⣿⣶⡀⠀⠀⢸⣿⣿⠀⠀⠀⠀⣨⢿⠛⠛⠋⠁⠀⣀⣴⡿⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⣴⡟⠉⠀⣀⣠⣤⣴⣶⣶⣶⣦⡀⠀⣠⣶⣿⣛⣯⣍⡻⢷⣦⠀⣼⡟⣡⣾⠟⠛⠳⣦⠙⣿⣴⣿⡄⣹⣏⠀⠀⣿⡇⠌⣿⣄⠀⠀⠀⠀⠀⠀⠀⢿⣧⡝⣿⠀⢿⣿⣼⣿⣀⠻⣿⣶⡿⠃⠀⠙⠛⠿⠿⠟⠋⠁⠀⠀⠀⠀⠙⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⢷⠟⡛⢭⡙⣿⣿⣧⣜⣿⣿⣿⣧⠀⠀⠰⣿⣿⠀⠀⠀⠀⣿⣦⣤⣤⣶⡶⠾⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢸⡟⠀⢀⣾⡟⢛⡭⠉⡔⢠⠂⣿⡇⢰⡿⣱⣿⠏⠉⠙⣷⠈⣿⣧⣿⡗⢸⣿⡀⠀⢠⣟⠠⣿⡏⠻⣷⣄⠛⣷⣶⣟⣡⣊⣬⣿⡇⠀⠀⠀⠀⠀⠀⠸⣿⣾⡿⣷⠿⠟⠛⠋⠁⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣷⣭⠘⢦⡘⡌⢿⣿⡻⣿⣿⣿⣿⣧⠀⢐⣿⣿⠀⠀⠀⠀⣿⠏⠙⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⣼⠃⠀⢸⣿⠃⣼⠁⠀⠁⡎⢄⢻⡇⢸⣧⠙⣿⡆⠀⠀⣿⢐⣹⣿⠻⣷⣈⠻⢷⣶⣾⢋⣶⡿⠁⠀⠙⠿⣶⣯⣿⡿⠿⠿⣿⠿⠁⠀⠀⠀⠀⠀⠀⠀⠉⠉⠁⠉⠀⠀⠀⣤⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⡔⠬⡱⢱⡈⢿⣷⡉⢿⣿⣿⣿⢆⣸⣿⡟⠀⠀⠀⠀⣿⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢹⡇⠀⢸⣷⡈⢴⣄⡀⢀⡞⢠⢹⣇⠀⢿⣮⡘⢻⣿⡿⣻⣴⡿⠃⠀⠙⠻⢷⣶⣾⡿⠟⠋⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⣀⣴⣀⠀⠀⠀⠀⠀⠀⣾⠟⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣖⢡⠣⡜⣄⠻⣿⣄⠻⣿⣿⡗⣾⣿⠇⠀⠀⠀⢰⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠘⣷⠀⠀⠻⣷⣮⣍⣭⡇⡘⢄⢺⣿⠀⠀⠙⠻⠿⢿⠿⠛⠉⠀⠀⠀⠀⢀⣄⡀⠀⠀⠀⣴⡶⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⡏⠀⠀⠀⠀⠀⣼⡟⠀⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣦⠓⡜⢤⠣⡙⣿⣆⠙⣿⣿⣿⡿⠀⠀⠀⠀⢼⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠘⣷⡆⠀⠀⠉⠋⠉⢀⡵⢪⣼⡟⠀⢰⠦⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⢻⣷⠀⠀⢸⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⡇⠀⠀⠀⠀⣰⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣷⡘⢆⢣⡓⡌⣿⣧⠈⠻⣿⣷⡀⠀⠀⠀⠀⠹⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣿⠃⠀⢀⣴⡶⢟⣫⣼⡿⠋⠁⢀⣴⠀⠀⠀⠀⠀⠀⠀⠀⢹⡧⠀⠀⠘⣿⡆⠀⣼⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⡇⠀⠀⠀⢠⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⢻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⡄⠀⠀⠀⠀⣿⡇⡘⢿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣧⢊⠦⣱⠘⣼⣿⣷⡀⠹⣿⣿⣄⠀⠀⠀⠀⠙⣿⣶⣤⣤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢀⡇⠀⠀⠀⠛⠛⠟⠛⠉⠀⣀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⢹⣿⠀⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⡇⠀⠀⢠⣿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⢸⣿⠀⠀⠀⠀⠰⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⣇⠀⠀⠀⠀⣿⡇⠐⠀⠙⣿⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣧⠚⡤⢋⢼⣿⠙⣷⡀⠽⣿⣿⣦⠀⠀⠀⠀⠈⠁⠀⠀⠉⠙⠻⢶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⣠⠞⠃⠀⠀⠀⠀⣤⣤⣤⣴⡾⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⢸⣿⡇⣿⡅⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⡃⠀⢠⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⠳⠈⣿⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⡿⠀⠀⠀⢠⣿⠁⠀⣀⣤⣼⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣗⢌⢣⢺⣿⡄⠙⣿⡖⡘⢿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣠⡾⠁⠀⠀⠀⠀⠀⣰⣿⣿⠟⠉⣠⡶⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡟⠀⠀⠀⠠⣿⣧⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡿⠃⣰⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡟⠀⠀⣿⠀⠀⠀⠀⡼⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⢃⠀⠀⠀⣸⣿⠾⠛⠋⠉⠉⠑⢸⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠸⣿⡌⢦⢹⣿⠂⣤⣿⣿⣦⠩⢿⣿⣇⠀⢀⣠⣤⣶⣦⣄⠀⠀⠀⠀⢸⣿⣦⣤⣄⠀⠀⠀⠀⠀⠀⠀
⣿⠁⠀⠀⠀⠀⣠⣾⣿⠟⠁⢀⣶⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⠃⠀⠀⠀⢀⣿⣷⣿⡃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡷⠰⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⠁⠀⠀⣿⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⣿⠀⠀⢺⣿⠃⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⢻⣿⢄⣻⣿⠀⢿⣿⠉⠻⣿⡎⣿⣿⣷⣿⣿⠿⢿⣿⣿⡆⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀
⠸⠀⠀⠀⠀⢸⣿⠋⠁⢀⣴⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⠇⠀⠀⠀⠀⢠⣿⡷⣿⡅⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣷⣉⣾⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠃⠀⠀⠀⣿⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⠀⢀⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⡻⣷⡀⠀⠀⠀⠀⠀⠈⣿⣇⢾⡟⠀⠈⣿⡆⠀⢻⣿⣼⣿⡿⠋⠁⣰⣾⣿⡿⠀⠀⠀⠀⠀⠀⠀⠈⢿⡆⠀⠀⠀⠀⠀⠀
⠠⠀⠀⠀⠀⠈⠁⠀⣠⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⡟⠀⠀⠀⠀⠀⢸⣿⣏⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣷⣼⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠃⠀⠀⠀⠀⣿⠀⠀⢠⣾⡇⠀⠀⠀⠀⠀⠀⢀⣿⡿⣹⡇⢀⣾⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣷⠹⣿⣆⠀⠀⠀⠀⠀⢹⣿⣿⡇⠀⠀⣿⡷⠀⠠⣿⡿⠛⠁⢠⣾⣿⣿⣋⣤⣤⣴⣶⣄⡀⠀⠀⠀⠈⢿⡄⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⠇⠀⠀⠀⢠⣾⠃⠀⠀⠀⠀⠀⠀⣸⡿⠁⠀⠀⠀⠀⠀⣼⣿⡧⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⣏⣀⣠⣤⣤⣸⣿⠀⢀⣾⣿⠃⠀⠀⠀⠀⠀⣠⡾⠋⢀⣿⣱⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣧⠙⣿⣦⠀⠀⠀⠀⠈⣿⣿⠀⠀⢸⣿⠃⠀⠀⠻⣧⡄⢰⣿⣿⣿⣿⡿⠿⠿⠿⢿⣿⣷⡄⠀⠀⠀⡘⣿⡀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢀⣾⣿⣿⡿⠀⠀⠀⣰⡿⠃⠀⠀⠀⠀⠀⠀⣰⣿⠃⠀⠀⠀⠀⠀⢠⣿⣿⠥⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⠀⠀⠀⠀⠀⣠⣴⣿⠟⠛⠉⠉⠀⠀⢸⡇⢠⣾⢻⡟⠀⠀⠀⢀⣴⡾⠋⠀⢀⣼⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⡜⡘⢿⣧⠀⠀⠀⠀⢻⣿⣶⣶⣾⣿⣦⡀⠀⠀⠹⣯⠈⠛⠋⠉⣀⣠⣤⣤⣤⣴⣿⣿⠇⠀⠀⠀⣾⣿⡷⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⣿⣿⣿⠇⠀⠀⣰⡿⠁⠀⠀⠀⠀⠀⠀⣸⣿⡟⠀⠀⠀⠀⠀⠀⣾⣿⡿⡐⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣧⢿⡆⠀⠀⢠⡴⢟⣻⡟⠁⠀⠀⠀⠀⠀⠀⣿⣳⡿⢣⡿⢁⣀⣤⡾⠛⠉⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠀⠀⠀⠘⣿⣇⢣⠀⢻⣧⠀⠀⠀⢸⣿⡏⢠⠀⢈⣽⣿⣦⡄⠀⠿⢠⠀⠀⢿⣿⣿⣿⣿⣿⣟⠛⠁⠀⠀⠀⠀⢸⡟⡇⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠘⢫⣿⡟⠀⠀⣰⡟⠁⠀⠀⠀⠀⠀⠀⣸⣿⣿⡇⠀⠀⠀⠀⠀⣼⣿⣿⡇⢣⢿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⡸⣗⠀⠀⠀⢠⣾⠏⠀⠀⠀⠀⠀⠀⠀⣼⡿⠟⠠⠿⠿⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⠀⠀⢠⣾⠏⠀⠀⣠⣴⢿⣿⢆⠀⠀⢻⣧⠀⠀⠈⣿⣷⣀⣶⡿⠋⠄⠙⣿⣦⠀⠀⠁⠀⠀⣀⣉⠙⠻⠿⣿⣿⣦⡀⠀⠀⠀⣸⣷⡇⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣿⣿⠃⠀⣴⡟⠀⠀⠀⠀⠀⠀⠀⢠⣿⣻⣿⠀⠀⠀⠀⠀⢰⣿⣿⡿⣐⠃⢾⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⡇⢿⠀⢀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠘⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠞⠁⠀⣠⣴⣿⣿⣿⣿⣿⣿⣷⣼⣿⣧⣤⣤⠌⢻⣇⠀⠀⣿⡟⢿⣯⡠⠑⣬⡾⠟⢻⣧⡀⠀⠀⠘⠻⢿⣿⣶⣤⣈⣿⣿⡇⠀⠀⠀⠈⢹⣧⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⣿⡟⠀⣼⡟⠀⠀⠀⠀⠀⠀⠀⢀⣿⣧⢽⣿⠀⠀⠀⠀⢀⣿⢿⣿⡗⠤⣙⢸⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣳⣶⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⣾⣿⡿⠟⠛⠛⠛⠻⠿⣿⡿⣿⣿⠁⠀⠀⠈⣿⡄⠀⣿⡇⠄⠛⢿⣾⢋⠰⡁⢎⣿⣿⣿⣷⣦⣄⡀⠉⠻⣿⣿⣿⠟⠃⠀⠀⠈⢿⡟⠋⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⣿⡇⣼⡟⠀⠀⠀⠀⠀⠀⢀⣤⣾⣿⣾⣼⣿⠀⠀⠀⠀⣼⡿⣻⣿⣿⣖⠌⡰⢿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⠟⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⡀⠀⠀⠀⠸⣿⣀⣿⡏⢨⠘⠌⢻⣷⣴⡼⠛⣹⣿⡗⢮⣝⡻⢿⣷⣦⣼⣿⣿⠂⠀⠀⠀⠀⠿⣧⡄⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⡿⣾⠏⠀⠀⠀⠀⠀⠀⠀⢸⣿⡁⠙⢿⣿⣿⠀⠀⠀⢠⣿⠗⣿⣿⠘⢿⣷⣄⢻⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⠤⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⡇⠀⠀⠀⠀⢻⣷⣿⣇⠢⡉⠜⠈⢻⣿⡄⢣⣼⣿⣷⡀⠙⠿⣷⣎⡟⣻⢿⣿⣷⣄⠀⠀⠀⠀⠈⢻⣆⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣷⡀⠀⠙⢿⣧⣀⠀⢘⡟⡰⣿⣿⣎⢆⡙⢿⣮⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⢀⣤⠀⠀⠀⠀⠹⣿⣆⠀⠀⠀⠈⣿⣿⣿⠐⠁⠀⠀⠀⢻⣿⣿⡛⣖⢻⡷⠀⠀⠈⠻⣿⡵⣎⠿⣿⣿⣦⡀⠀⠀⠀⠀⢻⣦⠀⠀
⠀⠀⠀⠀⠀⠸⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡿⢿⣆⠀⠀⠉⠛⠛⠿⢿⣶⣿⣿⣿⣆⠜⣠⣻⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣷⡀⠀⠰⢶⣤⣤⣤⣤⣶⣶⣿⣿⣿⣿⡿⠿⠿⠶⠤⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠓⠀⠛⠃⠀⠀⠀⠀⠹⣿⡄⠀⠀⡀⢸⣿⣿⠀⠀⠀⠀⠀⠀⣿⣧⢹⡌⣟⣿⡄⠀⠀⠀⠈⣿⣮⢳⡈⢿⣿⣷⡀⠀⠀⠀⠀⠻⣦⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣇⣩⣿⣷⡀⠀⠀⠀⠀⠀⠉⢻⣿⣿⣿⣦⣿⣿⣷⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣷⡀⠀⣠⣽⣿⣿⣿⡿⠟⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⡀⠀⠐⠀⣿⣿⠀⠀⠀⠀⠀⢀⣿⣧⢧⡛⣬⣿⡆⠀⠠⠀⠀⢈⣿⣯⡇⠀⢿⣿⣧⠀⠀⠀⠀⠀⢿⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣶⣶⡿⠿⠛⠛⠙⣿⣄⠀⠀⠀⠀⠀⠀⠻⣿⣮⡹⢿⣷⣌⠸⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⡇⠀⠐⠀⢿⣿⠀⠀⠀⠀⢀⣾⣿⣷⢮⡱⢧⣿⡇⠀⠄⠁⠂⠘⠸⣿⡷⠀⠘⣿⣿⡆⠀⠀⠀⠀⢸⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣾⠿⠛⠉⢀⣀⣤⣀⠀⠀⠀⠈⠻⢷⣤⣀⣤⡄⠀⠀⠻⣿⣿⠿⣿⣿⣷⡽⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢨⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣤⣤⣶⣶⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⠁⠀⠠⠀⠘⠻⣷⣤⣠⣾⢿⠻⣜⣿⡶⣙⢮⣿⡇⠀⠌⡀⠡⠀⠂⣿⡟⠀⠠⣿⣿⡇⠀⠀⠀⠀⢸⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣿⣷⡶⠿⠟⠛⣩⣿⡿⠀⠀⠀⠐⣤⣿⠟⠁⠀⠀⠀⠀⢻⣿⣇⠀⠙⠻⣿⡽⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠂⠁⠈⢻⣧⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⢦⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⣶⣾⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⠃⠀⠀⠁⢀⣠⣤⣤⣍⣻⠿⣿⣯⣼⣿⡗⡭⣖⣿⠃⠀⡐⠀⡁⠊⠀⣿⠏⠐⢠⣿⣿⠇⠀⠀⠀⠀⢸⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣾⠟⠁⠀⣰⣶⠄⣸⡿⠁⠀⠀⠀⠀⠀⢰⣿⢾⣿⣷⣄⡀⠘⣿⣟⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣷⡄⠀⠀⠀⠀⠀⠉⠓⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣶⡾⠟⢛⠋⣉⠡⢌⠰⡀⠆⠌⢡⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⣿⠃⠀⠀⣠⣾⣿⣛⢯⠻⣝⠿⣷⣦⣍⠻⢿⣿⣖⣹⡟⠀⠠⣀⠡⠐⠀⢸⡿⠀⢀⣾⣿⡿⠀⠀⠀⠀⢀⣾⠃
⢠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⠟⠁⠀⣠⣾⠟⠁⢀⣿⠇⠀⠀⠀⠀⠀⣠⣿⢏⣿⡏⠀⠉⠛⠿⣿⣿⡸⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣴⣾⠟⢋⠡⡐⢌⠆⡱⢈⠲⡈⢆⠱⡉⢌⣲⣿⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⠿⣿⡀⢀⣾⣿⢓⡶⣩⢞⡹⣬⢛⡴⣛⣿⣦⠀⠙⣿⣯⡁⠠⠁⠄⠂⠌⠀⠉⠁⢠⣾⣿⡿⠁⠀⠀⠀⠀⣾⠁⠀
⢰⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⠃⠀⢠⣾⠟⠁⢀⣰⣾⣿⠀⠀⣀⣤⣶⡿⠟⢃⣾⣟⣁⠢⡐⢤⠀⣸⣿⡇⠹⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣍⠠⠌⢂⠲⡉⠆⢎⡐⢣⠑⡌⢢⠑⡄⣺⡿⠃⠀⠀⠀⠀⠀⢀⣴⣿⠟⡁⠘⣿⣧⡾⠿⣜⢣⢞⡱⣎⡳⢵⣋⡞⣵⢪⢿⣷⡀⠈⢿⣷⡀⠁⠌⡐⢈⠰⢀⣴⣿⣿⠟⠁⠀⠀⠀⠀⣾⠃⠀⠀
⠸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣇⣀⣴⡟⠁⢀⣴⡿⢿⣿⡇⠀⢰⣿⠟⢿⣶⣶⣾⠟⠛⠻⠿⣿⣶⣮⣼⣿⣿⠁⠼⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣷⣬⣂⠑⠨⠘⢄⡘⠄⡃⢌⠰⣈⣶⡿⠁⠀⠀⠀⢀⣤⣾⡿⠋⡅⢲⠈⡅⣘⣿⣿⣿⣾⣿⣿⢿⡿⣿⣷⣾⣽⣢⠟⡼⣿⡇⠀⣸⣿⣇⡀⠄⠑⢈⣴⣿⣿⠿⠁⠀⠀⠀⠀⢀⣼⠋⠀⠀⠀
⠸⠀⠀⠀⠀⢠⣄⠆⠀⠀⠀⠀⠈⠻⠿⢿⣷⣾⠟⠋⠀⠸⣿⠇⠀⣿⣯⣼⣴⣿⣿⣃⣌⠡⢃⠒⠤⣈⣽⡿⢻⣟⠀⠀⠈⢻⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⠿⣷⣷⣶⣶⣷⣾⡿⠿⠛⠉⠀⠀⣀⣴⣾⣿⠟⡡⢂⡱⠌⡃⢌⣴⣿⡟⣧⢻⡶⣱⢎⡳⡼⡱⣎⣿⡿⣿⣾⣱⣿⢃⣠⣿⠟⠻⣷⡀⣰⣿⣿⡟⠃⠀⠀⠀⠀⢀⣴⠟⠃⠀⠀⠀⠀
⠘⠀⠀⠀⠀⠈⢻⣷⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⣿⡇⣰⣿⣏⢋⡉⢩⠙⡛⠿⠿⣿⣶⣶⣿⠛⡡⢚⡏⠀⠀⠀⠀⠙⢿⣧⡄⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠹⢷⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣴⣾⡿⢿⣿⣿⣿⠢⡑⢡⢂⢱⣼⣿⡟⢧⡝⢮⣿⡷⢭⣺⢱⠳⣽⣿⡟⡵⡭⣿⣿⠋⣴⣿⡏⠀⠀⠻⣿⣿⣿⠋⠀⠀⠀⠀⢀⣰⡿⠃⠀⠀⠀⠀⠀⠀
⠐⠀⠀⠀⠀⠀⠀⠋⢙⣿⣷⣦⣄⡀⠀⠀⠀⠀⢀⠀⠀⠀⠙⠿⠟⠛⠿⣿⣶⣥⣬⣴⣴⣶⣶⠿⢋⠄⡓⢄⣻⠁⠀⠀⠀⠀⠀⠀⠙⢿⣧⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣽⡿⣷⣽⣢⣤⣄⠀⠀⠀⠀⠀⠀⠀⣀⣀⣤⣴⣶⣿⣿⡟⠋⡅⠒⣸⣿⣿⣿⠠⠑⢂⣼⣿⡟⣽⣟⡜⢺⣿⡿⡜⣧⢣⣏⣽⣿⡟⣜⢧⢳⣿⣿⣿⡟⣧⢻⣆⠀⠀⣿⣿⡇⠀⠀⠀⠀⣰⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⢻⣟⠿⣿⣶⣤⡀⠐⠈⠐⠀⠀⠀⠀⠀⠀⢠⣿⣿⣟⠻⢛⠛⠛⡉⠤⡘⢄⠣⢸⡏⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⢿⣶⣄⣀⡀⠀⢀⣀⣠⣤⣴⣶⣾⠿⡿⣷⣝⠻⣿⣯⣿⣦⣤⣤⣶⣶⣶⣾⡿⠿⠟⠛⠉⢹⣿⡇⠰⠡⠆⣿⣿⣿⡏⠄⣣⣾⣿⣏⠷⣹⣿⢱⣻⣿⢣⡳⣭⠞⣭⣿⣿⡱⡽⣜⣾⣿⣿⣿⣱⣫⢾⣏⠀⠠⣿⣿⠇⠀⠀⠀⠀⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢠⣄⠀⢸⣿⢹⣯⣛⡴⢫⢟⡿⣷⡄⠀⠈⠠⢁⠂⠀⢠⣿⢯⡝⣿⣷⣮⣈⠱⢈⠆⣉⠢⢁⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⢿⣿⣿⣿⣿⣯⣯⣽⣱⣎⡝⡶⣍⢿⣧⠀⠙⠻⢿⣿⣍⠛⣿⣧⡄⠠⠀⢄⣠⣦⣾⣿⡁⢃⠣⣼⣿⣻⣿⣷⣼⣿⣿⣿⣿⣭⣻⣟⣲⣿⣏⠷⣱⢧⣛⣼⣿⣧⠻⡴⣋⣿⣯⠙⠋⠛⢿⣿⡏⠀⢰⣿⣿⠀⠀⠀⠀⢰⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⣿⣆⣸⡏⠸⣿⣲⣙⢯⣚⡼⡹⣿⡆⠀⠐⡀⠂⠁⣼⣿⡓⢾⡰⣏⠿⣿⣿⣶⣮⣤⣦⣁⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣮⣉⠙⡙⠛⠛⠛⠿⣿⣷⣯⣞⣿⡇⠀⢰⠀⠙⣿⣿⣄⣻⣿⣶⣿⣿⡿⣟⣿⣿⢀⠣⣼⣿⢳⣿⣿⣿⣿⡿⠁⠿⣿⣿⣾⡟⣼⣿⢫⡝⡧⣞⡱⣎⠿⣿⣿⣷⣿⣾⣿⣷⣦⡀⢠⣿⡇⠀⢸⣿⣟⠀⠀⠀⠀⢸⡇⢀⣀⣀⣀⣀⡀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣿⣿⣿⠃⠀⢻⣷⡭⢖⡳⢮⢵⣻⣿⠀⠐⠠⢰⡅⣿⡷⣹⢣⢟⣜⡳⠶⣌⡏⢿⣿⡟⠿⢿⢿⣿⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣷⡌⠰⡉⢌⡑⢂⣼⣿⠹⣿⣿⠃⠀⢈⠁⣾⣿⣟⠈⠁⠈⠻⣿⣷⢯⡳⣿⡏⣠⣿⡿⣽⣿⣿⣿⣿⣿⡇⠀⠀⣹⣿⣿⡟⣾⣿⢣⡝⡧⣝⡳⢮⡝⢮⡵⣭⢮⡵⣩⢛⣿⣷⣾⣿⠀⠀⢺⣿⡧⠀⠀⠀⠀⠘⠻⠿⢿⠟⠉⠟⣿⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣼⣿⡏⠀⡀⠈⢻⣯⡯⣜⢧⣫⢼⣿⠀⠀⣰⣿⠁⣿⣟⣥⡛⣮⢎⡗⣻⢬⡝⣮⣿⣿⡹⣚⡼⢻⣯⡝⣻⡟⡿⣿⣷⣶⣤⣄⣀⡀⠀⠀⠀⠘⣿⡄⡑⠢⢀⣿⡟⢡⢃⣿⡇⠀⠀⠀⣸⣿⣿⠿⣶⣤⣀⣀⣼⣿⣦⢉⣿⣷⠟⣋⣼⣿⣿⣟⣿⣿⣿⠀⠀⠀⣸⣿⡿⣜⣿⣿⢣⡻⣜⡵⣹⡓⡞⣧⢳⢎⠷⣭⠳⣭⣾⡿⣿⣿⡇⠀⠸⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡀⠀⠀⠀
⢈⠀⠀⠀⠀⢠⣿⣿⠁⠂⡐⠀⡀⠻⣷⣝⠶⣩⢾⣿⠀⢠⣿⠇⠀⢹⣿⢦⣛⡴⣫⠞⣵⠺⣼⣷⣽⣿⣱⢣⢯⡝⣿⣯⢽⣿⢲⠵⣯⣞⡹⣻⣿⣿⣿⣷⣶⣤⣤⣍⣰⣷⡿⢋⠐⢢⣼⣿⡃⠀⢀⠀⣽⣯⢿⣿⣾⣿⣿⣿⡛⠋⢿⣿⡿⣡⣴⣿⣿⣟⡷⣯⣿⣿⠇⠀⠀⢀⣿⣿⢻⡴⣛⣿⣧⣛⡼⣜⣣⣝⢳⢎⣳⢫⢞⡥⣿⡿⣏⡳⣿⣿⢿⣆⠀⢻⣿⣷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠨⡇⠀⠀⠀
⢠⠀⠀⠀⠀⢸⣿⡇⠀⡐⠈⠔⡀⠀⠙⠻⣯⣧⢿⡟⠀⣾⡟⠀⠀⠈⣿⣗⢮⢵⣣⢟⡜⣧⣻⡿⣼⣿⢣⢏⡶⣹⠼⣿⣿⣿⠭⣞⣹⣿⡱⣿⣿⡟⠙⠛⠻⠿⢿⣿⣿⡏⠰⣈⣼⡿⠛⣿⡇⠀⡀⠀⢾⣟⣦⣳⣾⣿⣿⣿⣿⣿⣾⣿⣿⣿⣿⣿⣻⣞⣿⣿⣿⠋⠀⠀⠀⣼⣿⣟⢳⡞⣥⢻⣿⣶⣓⢮⣓⢮⣛⣾⣥⣛⢮⢞⣭⠳⣎⣵⣿⣿⣯⣿⣷⡀⠙⠻⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀
⢸⠀⠀⠀⠀⢸⣿⠃⢀⠀⡁⠂⠄⡁⠂⠀⠉⢿⣿⡇⢰⣿⡇⠀⠄⡀⠘⣿⣯⠶⣙⢮⡝⣲⣿⡷⣿⣿⣏⣎⣗⣣⠟⣿⣿⣿⡝⣦⢻⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⣿⣿⣇⣶⠟⠁⠀⠀⢻⣷⡀⠀⠄⣈⣿⣾⣿⣿⣽⣞⣷⣻⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣅⠀⠀⠀⣼⣿⡿⡜⣧⠻⣬⢳⣼⣿⣿⣮⣝⣮⢱⢻⣿⡼⣩⢞⡼⣛⡴⣿⣿⠟⠿⢿⣿⣿⣿⣷⣾⣿⡿⠿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
⢸⠀⠀⠀⠀⢸⣿⠀⠠⠀⠄⡁⢂⠀⠃⢈⠀⠀⢿⣷⢸⣿⠁⠐⡈⠄⠀⠈⢿⣯⡝⡶⣩⣿⣿⣾⣿⣿⣷⡞⡼⣜⠯⣽⣿⣿⢣⢿⣻⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⣿⣿⡟⠁⠀⠀⠀⠀⠀⠻⣿⡿⠿⠟⢋⠄⡙⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣻⣟⣿⣿⣿⣦⣀⣼⣿⡿⣱⠻⣜⣻⣴⣿⣿⠟⠛⠻⢿⣿⣿⣾⣿⡷⣙⢮⡳⣝⣾⣿⡟⠀⠀⠀⠀⠈⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠒⠀⠀⠀⠀
⢨⠀⠀⠀⠀⢸⣿⣇⢀⠂⡐⢀⠂⠀⢢⡦⠀⠂⢸⣿⣿⣿⡆⠐⠠⠘⡀⠂⠀⠙⢿⣷⣷⣿⣷⣿⣿⢿⣿⣿⡱⣎⠷⣹⣿⡿⣩⢷⣿⣿⡏⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠙⢶⡈⠜⡠⢂⣼⣿⣿⢿⣽⣿⣿⣿⣿⡟⣿⣿⣟⣿⢾⣳⡿⣿⣿⣿⣿⡟⣱⢭⣳⣿⣿⡿⠛⠁⠀⠀⠀⠀⠀⢉⣿⣿⡳⠽⣧⣽⣿⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⠾⠛⠀⠀⠀⠀⠀⠀
⢨⠀⠀⠀⠀⠘⢿⣿⣦⡀⠌⠀⠂⢰⣿⠇⠀⠀⢸⣿⡿⣿⡇⠀⢁⠂⠄⠡⠈⠀⠠⠙⣿⣿⣿⡿⠃⠀⢿⣿⣷⡩⢏⣿⣿⡱⣧⣿⣿⠟⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠒⠧⣼⣿⡿⣯⢿⣾⢿⣟⣾⣿⡇⢹⣿⣿⣞⡿⣽⣻⣽⣿⣿⣿⣼⣿⣿⡿⠟⠉⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡿⣱⣿⣿⣿⠟⠁⠀⠀⠀⠀⣸⣿⣤⣤⣤⣤⡶⠶⠞⠛⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀
⠘⢆⠀⠀⠀⠀⠈⠻⣿⣿⣦⡀⢀⣾⡏⠀⠀⢀⣿⡿⣵⣿⣿⡀⠄⢈⠐⢂⠡⠈⠀⢼⣿⣿⠋⠀⠀⠀⢸⣿⣿⠱⣿⡿⣥⣿⣿⡿⠋⠀⠀⠀⠀⠀⢀⣴⣿⣿⠟⣡⣾⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣻⣽⣟⡾⣟⣾⣽⣿⠁⢎⢻⣿⣯⣿⣯⣟⣾⣻⣿⣿⡟⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣷⣿⠿⠋⠀⠀⠀⠀⠀⣠⣾⠟⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠈⢳⡀⠀⠀⠀⠀⠀⠛⢿⣿⣿⡿⠀⠀⢀⣾⣿⣿⣿⣿⣿⣷⡀⢀⠈⠀⡀⠐⠀⣾⣿⡇⠀⠀⠀⠀⢸⣿⡿⣽⣿⣿⣿⣿⠛⠀⠀⠀⠀⠀⢀⣴⣿⣿⢟⣡⠞⠃⢈⠀⣠⣤⣀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣳⣟⡷⣯⢿⣻⣽⣿⠏⡌⠀⢂⡻⢿⣷⣿⡾⣽⣳⣿⣿⣧⠀⠀⠀⠀⢀⣤⣤⠀⠀⠀⠘⣿⠿⠟⠛⠉⠀⠀⠀⠀⠀⠀⣠⣾⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⡃⠀⠀⠀⠀⢠⣴⣿⡿⠟⢥⣤⣶⣿⣿⣿⠟⠋⠀⣻⣿⣿⣿⢶⣴⡦⠴⣾⣿⣿⡗⠀⢀⠀⠠⣿⣿⣿⣿⡿⠟⠋⠀⠀⠀⠀⠀⠀⣴⣿⣿⠿⠷⠈⠀⠀⠰⠮⣿⠯⠈⠹⢷⣤⡄⠀⠀⠀⠀⣼⣿⣿⢷⣿⢿⡿⣿⠿⡿⡿⠿⠇⢤⠌⠷⠾⣿⣿⣿⣿⢿⡿⣿⣿⠂⠀⠀⠀⢼⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⡾⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠈⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣺⣿⣏⡿⢶⣤⣀⡀⢀⣀⣀⣠⣤⣶⢿⣛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠈⢦⣀⣀⣀⣀⣀⠀⠀⣀⣀⣀⣀⣀⣀⣤⡀⣀⣀⠀⠀⣀⠀⠀⠀⠀⠀⠀⢠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡾⢷⣦⣄⣀⡀⣀⣀⣀⣀⢀⣄⣀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣄⡀⡀⠀⠀⠀⡀⢀⡀⠀⠀⠀⡀⠀⢀⠀⠀⠀⠀⢀⡀⢀⠀⠀⠀⣼⣿⣿⠿⣄⠀⣭⠙⠛⠛⠛⠋⠉⣀⡀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀
*/
#include<bits/stdc++.h>
#define ll long long
#define ii int
#define fas ios::sync_with_stdio(0); cin.tie(0)
#define nq int main()
#define For(i, a, b) for(i = a; i < b; i++)
#define Fo(i, a, b) for(i = a; i <= b; i++)
#define Rep(i, a, b) for(i = a - 1; i >= b; i--)
#define Re(i, a, b) for(i = a; i >= b; i--)
#define F0(i, n) For(i, 0, n)
#define F1(i, n) Fo(i, 1, n)
#define cl clear()
#define be begin()
#define rb rbegin()
#define en end()
#define all(x) x.begin(), x.end()
#define allt(x) x.begin() + 1, x.end()
#define fi first
#define se second
#define pb push_back
#define pf push_front
#define pob pop_back()
#define pof pop_front()
#define v1 vector<int>
#define v1l vector<ll>
#define v2 vector<vector<int>>
#define v2l vector<vector<ll>>
#define pai pair<int, int>
#define pail pair<int, ll>
#define pali pair<ll, int>
#define pal pair<ll, ll>
#define v1ip vector<pai>
#define v1ilp vector<pail>
#define v1lip vector<pali>
#define v1lp vector<pal>
#define gri greater<pai>
#define gril greater<pail>
#define grli greater<pali>
#define grl greater<pal>
#define uni unordered_map<int, int>
#define unl unordered_map<ll, ll>
#define fin(x) freopen(x, "r", stdin)
#define fou(x) freopen(x, "w", stdout)
using namespace std;
const ii inf = 1e9 + 7;
const ii iinf = -1e9 - 7;
const ll oo = 1e18 + 7;
const ii N = 5e5 + 5;
const ii KK = 3;
const ll MOD[3] = {1000000007, 1000000009, 1000000033};
const ll BASE[3] = {311, 331, 351};
const ll BASEa[3] = {31, 37, 41};
const ll BASEA[3] = {53, 59, 61};
ii n;
ii d1, d2, d3, d4;
ii ans;
nq{
fas;
ii i; cin >> n;
F1(i, n){
ii x; cin >> x;
if (x == 1)d1++;
else if (x == 2) d2++;
else if (x == 3) d3++;
else d4++;
}
ans = d4 + d3;
if (d1 >= d3) d1 -= d3;
else d1 = 0;
ans += d2 / 2;
if (d2 % 2 != 0){
ans += 1;
if (d1 >= 2) d1 -= 2;
else d1 = 0;
}
if (d1 > 0){
ans += d1 / 4;
if (d1 % 4 != 0) ans++;
}
cout << ans;
}