## On the Subject of Roger

"Okay! The seed is 1337, now onto- wait, how did you get 0475 so quickly?!"

Input the number below, refer to the table with that number. Create a new 4 digit number based on the digits of the seed.

Take the seed modulo 16, refer to the table with that number. Create a new 4 digit number based on the digits of the seed.

If any result is greater than 9, subtract 10.

[0]
X---2nd
-X--4th + 3
--X-1st + 1
---X3rd + 9
[1]
X---2nd + 1
-X--4th + 4
--X-3rd + 1
---X1st + 5
[2]
X---3rd + 2
-X--4th + 3
--X-2nd + 9
---X1st + 3
[3]
X---1st + 2
-X--3rd + 5
--X-2nd + 1
---X4th + 4
[4]
X---1st + 9
-X--3rd + 1
--X-2nd + 8
---X4th + 7
[5]
X---4th + 5
-X--1st + 1
--X-3rd + 5
---X2nd
[6]
X---4th + 8
-X--3rd + 3
--X-2nd + 3
---X1st + 5
[7]
X---3rd + 2
-X--4th + 2
--X-1st + 9
---X2nd + 2
[8]
X---4th + 8
-X--2nd + 2
--X-3rd + 2
---X1st + 8
[9]
X---1st + 9
-X--3rd + 1
--X-4th
---X2nd + 2
[10]
X---3rd + 9
-X--2nd + 8
--X-1st + 3
---X4th + 3
[11]
X---2nd + 4
-X--1st + 8
--X-4th
---X3rd + 7
[12]
X---3rd + 6
-X--1st + 0
--X-4th + 8
---X2nd + 7
[13]
X---1st + 1
-X--2nd + 4
--X-4th + 7
---X3rd + 3
[14]
X---4th + 6
-X--2nd + 5
--X-1st + 9
---X3rd + 3
[15]
X---2nd
-X--1st + 7
--X-3rd + 3
---X4th + 8