use strict;

undef $/;
my @st = split(/ |\n/, <DATA>);
my $nerrors = 0;
foreach my $i (0 .. @st - 1) {
	my $tab = hex($st[$i]);
	my $true = int(sin(3.14159265 * $i / 4096) * 65535 + 0.5);
	my $dif = $tab - $true;
	if ($dif) {
		print "$tab $true $dif\n";
		$nerrors++
	}
}
print "Found $nerrors errors.\n"


__END__
0000 0032 0065 0097 00C9 00FB 012E 0160 0192 01C4 01F7 0229 025B 028D 02C0 02F2
0324 0356 0389 03BB 03ED 0420 0452 0484 04B6 04E9 051B 054D 057F 05B2 05E4 0616
0648 067B 06AD 06DF 0711 0744 0776 07A8 07DA 080D 083F 0871 08A3 08D5 0908 093A
096C 099E 09D1 0A03 0A35 0A67 0A9A 0ACC 0AFE 0B30 0B62 0B95 0BC7 0BF9 0C2B 0C5D
0C90 0CC2 0CF4 0D26 0D58 0D8B 0DBD 0DEF 0E21 0E53 0E86 0EB8 0EEA 0F1C 0F4E 0F80
0FB3 0FE5 1017 1049 107B 10AD 10E0 1112 1144 1176 11A8 11DA 120D 123F 1271 12A3
12D5 1307 1339 136B 139E 13D0 1402 1434 1466 1498 14CA 14FC 152E 1560 1593 15C5
15F7 1629 165B 168D 16BF 16F1 1723 1755 1787 17B9 17EB 181D 184F 1881 18B4 18E6
1918 194A 197C 19AE 19E0 1A12 1A44 1A76 1AA8 1ADA 1B0C 1B3E 1B70 1BA2 1BD3 1C05
1C37 1C69 1C9B 1CCD 1CFF 1D31 1D63 1D95 1DC7 1DF9 1E2B 1E5D 1E8F 1EC1 1EF2 1F24
1F56 1F88 1FBA 1FEC 201E 2050 2081 20B3 20E5 2117 2149 217B 21AC 21DE 2210 2242
2274 22A6 22D7 2309 233B 236D 239E 23D0 2402 2434 2466 2497 24C9 24FB 252D 255E
2590 25C2 25F3 2625 2657 2689 26BA 26EC 271E 274F 2781 27B3 27E4 2816 2848 2879
28AB 28DC 290E 2940 2971 29A3 29D4 2A06 2A38 2A69 2A9B 2ACC 2AFE 2B2F 2B61 2B92
2BC4 2BF6 2C27 2C59 2C8A 2CBC 2CED 2D1E 2D50 2D81 2DB3 2DE4 2E16 2E47 2E79 2EAA
2EDC 2F0D 2F3E 2F70 2FA1 2FD3 3004 3035 3067 3098 30C9 30FB 312C 315D 318F 31C0
31F1 3223 3254 3285 32B6 32E8 3319 334A 337B 33AD 33DE 340F 3440 3471 34A3 34D4
3505 3536 3567 3599 35CA 35FB 362C 365D 368E 36BF 36F0 3721 3753 3784 37B5 37E6
3817 3848 3879 38AA 38DB 390C 393D 396E 399F 39D0 3A01 3A32 3A63 3A94 3AC5 3AF5
3B26 3B57 3B88 3BB9 3BEA 3C1B 3C4C 3C7D 3CAD 3CDE 3D0F 3D40 3D71 3DA1 3DD2 3E03
3E34 3E64 3E95 3EC6 3EF7 3F27 3F58 3F89 3FB9 3FEA 401B 404B 407C 40AD 40DD 410E
413F 416F 41A0 41D0 4201 4232 4262 4293 42C3 42F4 4324 4355 4385 43B6 43E6 4417
4447 4477 44A8 44D8 4509 4539 4569 459A 45CA 45FB 462B 465B 468C 46BC 46EC 471D
474D 477D 47AD 47DE 480E 483E 486E 489E 48CF 48FF 492F 495F 498F 49BF 49F0 4A20
4A50 4A80 4AB0 4AE0 4B10 4B40 4B70 4BA0 4BD0 4C00 4C30 4C60 4C90 4CC0 4CF0 4D20
4D50 4D80 4DB0 4DE0 4E10 4E3F 4E6F 4E9F 4ECF 4EFF 4F2F 4F5E 4F8E 4FBE 4FEE 501D
504D 507D 50AD 50DC 510C 513C 516B 519B 51CB 51FA 522A 5259 5289 52B9 52E8 5318
5347 5377 53A6 53D6 5405 5435 5464 5494 54C3 54F2 5522 5551 5581 55B0 55DF 560F
563E 566D 569D 56CC 56FB 572B 575A 5789 57B8 57E7 5817 5846 5875 58A4 58D3 5902
5932 5961 5990 59BF 59EE 5A1D 5A4C 5A7B 5AAA 5AD9 5B08 5B37 5B66 5B95 5BC4 5BF3
5C22 5C51 5C7F 5CAE 5CDD 5D0C 5D3B 5D6A 5D98 5DC7 5DF6 5E25 5E53 5E82 5EB1 5EE0
5F0E 5F3D 5F6C 5F9A 5FC9 5FF7 6026 6055 6083 60B2 60E0 610F 613D 616C 619A 61C9
61F7 6226 6254 6282 62B1 62DF 630E 633C 636A 6399 63C7 63F5 6423 6452 6480 64AE
64DC 650A 6539 6567 6595 65C3 65F1 661F 664D 667B 66A9 66D8 6706 6734 6762 6790
67BD 67EB 6819 6847 6875 68A3 68D1 68FF 692D 695A 6988 69B6 69E4 6A12 6A3F 6A6D
6A9B 6AC8 6AF6 6B24 6B51 6B7F 6BAD 6BDA 6C08 6C35 6C63 6C90 6CBE 6CEB 6D19 6D46
6D74 6DA1 6DCF 6DFC 6E29 6E57 6E84 6EB1 6EDF 6F0C 6F39 6F67 6F94 6FC1 6FEE 701C
7049 7076 70A3 70D0 70FD 712A 7157 7185 71B2 71DF 720C 7239 7266 7293 72BF 72EC
7319 7346 7373 73A0 73CD 73FA 7426 7453 7480 74AD 74D9 7506 7533 755F 758C 75B9
75E5 7612 763F 766B 7698 76C4 76F1 771D 774A 7776 77A3 77CF 77FC 7828 7854 7881
78AD 78D9 7906 7932 795E 798A 79B7 79E3 7A0F 7A3B 7A67 7A94 7AC0 7AEC 7B18 7B44
7B70 7B9C 7BC8 7BF4 7C20 7C4C 7C78 7CA4 7CD0 7CFB 7D27 7D53 7D7F 7DAB 7DD7 7E02
7E2E 7E5A 7E86 7EB1 7EDD 7F09 7F34 7F60 7F8B 7FB7 7FE2 800E 803A 8065 8090 80BC
80E7 8113 813E 816A 8195 81C0 81EC 8217 8242 826D 8299 82C4 82EF 831A 8345 8371
839C 83C7 83F2 841D 8448 8473 849E 84C9 84F4 851F 854A 8575 85A0 85CB 85F5 8620
864B 8676 86A1 86CB 86F6 8721 874B 8776 87A1 87CB 87F6 8820 884B 8876 88A0 88CB
88F5 8920 894A 8974 899F 89C9 89F3 8A1E 8A48 8A72 8A9D 8AC7 8AF1 8B1B 8B46 8B70
8B9A 8BC4 8BEE 8C18 8C42 8C6C 8C96 8CC0 8CEA 8D14 8D3E 8D68 8D92 8DBC 8DE6 8E0F
8E39 8E63 8E8D 8EB7 8EE0 8F0A 8F34 8F5D 8F87 8FB1 8FDA 9004 902D 9057 9080 90AA
90D3 90FD 9126 914F 9179 91A2 91CC 91F5 921E 9247 9271 929A 92C3 92EC 9315 933E
9368 9391 93BA 93E3 940C 9435 945E 9487 94B0 94D9 9501 952A 9553 957C 95A5 95CE
95F6 961F 9648 9670 9699 96C2 96EA 9713 973B 9764 978D 97B5 97DD 9806 982E 9857
987F 98A8 98D0 98F8 9920 9949 9971 9999 99C1 99EA 9A12 9A3A 9A62 9A8A 9AB2 9ADA
9B02 9B2A 9B52 9B7A 9BA2 9BCA 9BF2 9C1A 9C41 9C69 9C91 9CB9 9CE1 9D08 9D30 9D58
9D7F 9DA7 9DCE 9DF6 9E1E 9E45 9E6D 9E94 9EBB 9EE3 9F0A 9F32 9F59 9F80 9FA8 9FCF
9FF6 A01D A045 A06C A093 A0BA A0E1 A108 A12F A156 A17D A1A4 A1CB A1F2 A219 A240
A267 A28E A2B5 A2DB A302 A329 A350 A376 A39D A3C4 A3EA A411 A437 A45E A485 A4AB
A4D2 A4F8 A51E A545 A56B A591 A5B8 A5DE A604 A62B A651 A677 A69D A6C3 A6EA A710
A736 A75C A782 A7A8 A7CE A7F4 A81A A83F A865 A88B A8B1 A8D7 A8FD A922 A948 A96E
A993 A9B9 A9DF AA04 AA2A AA4F AA75 AA9A AAC0 AAE5 AB0B AB30 AB55 AB7B ABA0 ABC5
ABEB AC10 AC35 AC5A AC7F ACA5 ACCA ACEF AD14 AD39 AD5E AD83 ADA8 ADCD ADF1 AE16
AE3B AE60 AE85 AEAA AECE AEF3 AF18 AF3C AF61 AF86 AFAA AFCF AFF3 B018 B03C B061
B085 B0A9 B0CE B0F2 B116 B13B B15F B183 B1A7 B1CC B1F0 B214 B238 B25C B280 B2A4
B2C8 B2EC B310 B334 B358 B37C B39F B3C3 B3E7 B40B B42E B452 B476 B499 B4BD B4E1
B504 B528 B54B B56F B592 B5B6 B5D9 B5FC B620 B643 B666 B68A B6AD B6D0 B6F3 B716
B739 B75D B780 B7A3 B7C6 B7E9 B80C B82E B851 B874 B897 B8BA B8DD B8FF B922 B945
B968 B98A B9AD B9CF B9F2 BA14 BA37 BA59 BA7C BA9E BAC1 BAE3 BB05 BB28 BB4A BB6C
BB8E BBB1 BBD3 BBF5 BC17 BC39 BC5B BC7D BC9F BCC1 BCE3 BD05 BD27 BD49 BD6B BD8C
BDAE BDD0 BDF2 BE13 BE35 BE57 BE78 BE9A BEBB BEDD BEFE BF20 BF41 BF63 BF84 BFA5
BFC7 BFE8 C009 C02A C04C C06D C08E C0AF C0D0 C0F1 C112 C133 C154 C175 C196 C1B7
C1D8 C1F8 C219 C23A C25B C27B C29C C2BD C2DD C2FE C31F C33F C360 C380 C3A0 C3C1
C3E1 C402 C422 C442 C462 C483 C4A3 C4C3 C4E3 C503 C523 C543 C563 C583 C5A3 C5C3
C5E3 C603 C623 C643 C663 C682 C6A2 C6C2 C6E1 C701 C721 C740 C760 C77F C79F C7BE
C7DE C7FD C81C C83C C85B C87A C89A C8B9 C8D8 C8F7 C916 C935 C954 C973 C992 C9B1
C9D0 C9EF CA0E CA2D CA4C CA6B CA89 CAA8 CAC7 CAE5 CB04 CB23 CB41 CB60 CB7E CB9D
CBBB CBDA CBF8 CC16 CC35 CC53 CC71 CC8F CCAE CCCC CCEA CD08 CD26 CD44 CD62 CD80
CD9E CDBC CDDA CDF8 CE16 CE34 CE51 CE6F CE8D CEAA CEC8 CEE6 CF03 CF21 CF3E CF5C
CF79 CF97 CFB4 CFD2 CFEF D00C D029 D047 D064 D081 D09E D0BB D0D8 D0F5 D112 D12F
D14C D169 D186 D1A3 D1C0 D1DD D1FA D216 D233 D250 D26C D289 D2A5 D2C2 D2DF D2FB
D317 D334 D350 D36D D389 D3A5 D3C2 D3DE D3FA D416 D432 D44E D46A D486 D4A2 D4BE
D4DA D4F6 D512 D52E D54A D566 D581 D59D D5B9 D5D4 D5F0 D60C D627 D643 D65E D67A
D695 D6B0 D6CC D6E7 D702 D71E D739 D754 D76F D78A D7A6 D7C1 D7DC D7F7 D812 D82D
D847 D862 D87D D898 D8B3 D8CE D8E8 D903 D91E D938 D953 D96D D988 D9A2 D9BD D9D7
D9F2 DA0C DA26 DA41 DA5B DA75 DA8F DAA9 DAC3 DADE DAF8 DB12 DB2C DB46 DB5F DB79
DB93 DBAD DBC7 DBE1 DBFA DC14 DC2E DC47 DC61 DC7A DC94 DCAD DCC7 DCE0 DCFA DD13
DD2C DD46 DD5F DD78 DD91 DDAB DDC4 DDDD DDF6 DE0F DE28 DE41 DE5A DE73 DE8C DEA4
DEBD DED6 DEEF DF07 DF20 DF39 DF51 DF6A DF82 DF9B DFB3 DFCC DFE4 DFFC E015 E02D
E045 E05D E076 E08E E0A6 E0BE E0D6 E0EE E106 E11E E136 E14E E166 E17D E195 E1AD
E1C5 E1DC E1F4 E20C E223 E23B E252 E26A E281 E299 E2B0 E2C7 E2DF E2F6 E30D E324
E33B E353 E36A E381 E398 E3AF E3C6 E3DD E3F4 E40A E421 E438 E44F E466 E47C E493
E4A9 E4C0 E4D7 E4ED E504 E51A E530 E547 E55D E573 E58A E5A0 E5B6 E5CC E5E2 E5F9
E60F E625 E63B E651 E667 E67C E692 E6A8 E6BE E6D4 E6E9 E6FF E715 E72A E740 E755
E76B E780 E796 E7AB E7C1 E7D6 E7EB E801 E816 E82B E840 E855 E86A E87F E894 E8A9
E8BE E8D3 E8E8 E8FD E912 E927 E93B E950 E965 E979 E98E E9A2 E9B7 E9CB E9E0 E9F4
EA09 EA1D EA31 EA46 EA5A EA6E EA82 EA96 EAAB EABF EAD3 EAE7 EAFB EB0F EB22 EB36
EB4A EB5E EB72 EB85 EB99 EBAD EBC0 EBD4 EBE7 EBFB EC0E EC22 EC35 EC49 EC5C EC6F
EC82 EC96 ECA9 ECBC ECCF ECE2 ECF5 ED08 ED1B ED2E ED41 ED54 ED67 ED79 ED8C ED9F
EDB2 EDC4 EDD7 EDE9 EDFC EE0F EE21 EE33 EE46 EE58 EE6A EE7D EE8F EEA1 EEB3 EEC6
EED8 EEEA EEFC EF0E EF20 EF32 EF44 EF55 EF67 EF79 EF8B EF9C EFAE EFC0 EFD1 EFE3
EFF5 F006 F017 F029 F03A F04C F05D F06E F07F F091 F0A2 F0B3 F0C4 F0D5 F0E6 F0F7
F108 F119 F12A F13B F14C F15C F16D F17E F18E F19F F1B0 F1C0 F1D1 F1E1 F1F2 F202
F212 F223 F233 F243 F253 F264 F274 F284 F294 F2A4 F2B4 F2C4 F2D4 F2E4 F2F4 F304
F313 F323 F333 F342 F352 F362 F371 F381 F390 F3A0 F3AF F3BF F3CE F3DD F3EC F3FC
F40B F41A F429 F438 F447 F456 F465 F474 F483 F492 F4A1 F4B0 F4BE F4CD F4DC F4EA
F4F9 F508 F516 F525 F533 F542 F550 F55E F56D F57B F589 F597 F5A6 F5B4 F5C2 F5D0
F5DE F5EC F5FA F608 F616 F623 F631 F63F F64D F65A F668 F676 F683 F691 F69E F6AC
F6B9 F6C6 F6D4 F6E1 F6EE F6FC F709 F716 F723 F730 F73D F74A F757 F764 F771 F77E
F78B F798 F7A4 F7B1 F7BE F7CA F7D7 F7E4 F7F0 F7FD F809 F815 F822 F82E F83A F847
F853 F85F F86B F877 F884 F890 F89C F8A8 F8B4 F8BF F8CB F8D7 F8E3 F8EF F8FA F906
F912 F91D F929 F934 F940 F94B F957 F962 F96D F979 F984 F98F F99A F9A5 F9B1 F9BC
F9C7 F9D2 F9DD F9E8 F9F2 F9FD FA08 FA13 FA1E FA28 FA33 FA3E FA48 FA53 FA5D FA68
FA72 FA7C FA87 FA91 FA9B FAA6 FAB0 FABA FAC4 FACE FAD8 FAE2 FAEC FAF6 FB00 FB0A
FB14 FB1E FB27 FB31 FB3B FB44 FB4E FB57 FB61 FB6A FB74 FB7D FB87 FB90 FB99 FBA3
FBAC FBB5 FBBE FBC7 FBD0 FBD9 FBE2 FBEB FBF4 FBFD FC06 FC0F FC17 FC20 FC29 FC32
FC3A FC43 FC4B FC54 FC5C FC65 FC6D FC75 FC7E FC86 FC8E FC96 FC9F FCA7 FCAF FCB7
FCBF FCC7 FCCF FCD7 FCDE FCE6 FCEE FCF6 FCFD FD05 FD0D FD14 FD1C FD23 FD2B FD32
FD3A FD41 FD48 FD50 FD57 FD5E FD65 FD6C FD73 FD7B FD82 FD89 FD8F FD96 FD9D FDA4
FDAB FDB2 FDB8 FDBF FDC6 FDCC FDD3 FDD9 FDE0 FDE6 FDED FDF3 FDF9 FE00 FE06 FE0C
FE12 FE18 FE1E FE24 FE2A FE30 FE36 FE3C FE42 FE48 FE4E FE54 FE59 FE5F FE65 FE6A
FE70 FE75 FE7B FE80 FE86 FE8B FE90 FE96 FE9B FEA0 FEA5 FEAA FEAF FEB4 FEBA FEBE
FEC3 FEC8 FECD FED2 FED7 FEDC FEE0 FEE5 FEEA FEEE FEF3 FEF7 FEFC FF00 FF05 FF09
FF0D FF12 FF16 FF1A FF1E FF22 FF27 FF2B FF2F FF33 FF37 FF3A FF3E FF42 FF46 FF4A
FF4D FF51 FF55 FF58 FF5C FF5F FF63 FF66 FF6A FF6D FF70 FF74 FF77 FF7A FF7D FF81
FF84 FF87 FF8A FF8D FF90 FF93 FF95 FF98 FF9B FF9E FFA1 FFA3 FFA6 FFA8 FFAB FFAE
FFB0 FFB3 FFB5 FFB7 FFBA FFBC FFBE FFC0 FFC3 FFC5 FFC7 FFC9 FFCB FFCD FFCF FFD1
FFD3 FFD4 FFD6 FFD8 FFDA FFDB FFDD FFDF FFE0 FFE2 FFE3 FFE5 FFE6 FFE7 FFE9 FFEA
FFEB FFEC FFEE FFEF FFF0 FFF1 FFF2 FFF3 FFF4 FFF5 FFF6 FFF6 FFF7 FFF8 FFF9 FFF9
FFFA FFFB FFFB FFFC FFFC FFFD FFFD FFFD FFFE FFFE FFFE FFFF FFFF FFFF FFFF FFFF