Beat everyone in Clash of Code

```js
r=readline
print((+r()+(r()-1))%7+1)
```