#1: Initial revision
by
south
·
2022-02-14T07:36:53Z (almost 3 years ago)
# [J](https://jsoftware.com/#/), 21 bytes
```J
,&'+".1!:1(3)'1!:1(3)
```
[Try it online!](https://tio.run/##y/r/PzU5I19BR01dW0nPUNHKUMNYUx1K//9vaGQMAA)
STDIN is ugly in J because you have to use [foreigns](https://code.jsoftware.com/wiki/Vocabulary/Foreigns).