Table:
selected characteristic and company size
2017
2018

domestic r&d performancea
400100
441036

type of r&db

basic research
24829
28980

applied research
62132
65222

development
313139
346834

paid for by the companyc
339036
377806

basic research
18732
22312

applied research
49149
53229

development
271155
302264

paid for by others
61065
63230

basic research
6097
6668

applied research
12984
11993

development
41984
44570

source of funds

federal
24277
24685

otherd
36788
38545

size of company

small companiese

10-19
3311
4390

20-49
9435
11252

medium companies

50-99
10141
12321

100-249
17216
18547

large companies

250-499
14103
19645

500-999
17871
17657

1,000-4,999
65112
68578

5,000-9,999
40198
45337

10,000-24,999
73485
84420

25,000 or more
149227
158889

Reconstruct the table in the presented picture as an HTML-style table in text.

<table border="1" cellspacing="0">
<tr> <td> selected characteristic and company size </td> <td> 2017 </td> <td colspan="2"> 2018 </td> </tr>
<tr> <td> domestic r&amp;d performancea </td> <td> 400100 </td> <td> 441036 </td> </tr>
<tr> <td> type of r&amp;db </td> <td>  </td> <td>  </td> </tr>
<tr> <td> basic research </td> <td> 24829 </td> <td> 28980 </td> </tr>
<tr> <td> applied research </td> <td> 62132 </td> <td> 65222 </td> </tr>
<tr> <td> development </td> <td> 313139 </td> <td> 346834 </td> </tr>
<tr> <td> paid for by the companyc </td> <td> 339036 </td> <td> 377806 </td> </tr>
<tr> <td> basic research </td> <td> 18732 </td> <td> 22312 </td> </tr>
<tr> <td> applied research </td> <td> 49149 </td> <td> 53229 </td> </tr>
<tr> <td> development </td> <td> 271155 </td> <td> 302264 </td> </tr>
<tr> <td> paid for by others </td> <td> 61065 </td> <td> 63230 </td> </tr>
<tr> <td> basic research </td> <td> 6097 </td> <td> 6668 </td> </tr>
<tr> <td> applied research </td> <td> 12984 </td> <td> 11993 </td> </tr>
<tr> <td> development </td> <td> 41984 </td> <td> 44570 </td> </tr>
<tr> <td> source of funds </td> <td>  </td> <td>  </td> </tr>
<tr> <td> federal </td> <td> 24277 </td> <td> 24685 </td> </tr>
<tr> <td> otherd </td> <td> 36788 </td> <td> 38545 </td> </tr>
<tr> <td> size of company </td> <td>  </td> <td>  </td> </tr>
<tr> <td> small companiese </td> <td>  </td> <td>  </td> </tr>
<tr> <td> 10-19 </td> <td> 3311 </td> <td> 4390 </td> </tr>
<tr> <td> 20-49 </td> <td> 9435 </td> <td> 11252 </td> </tr>
<tr> <td> medium companies </td> <td>  </td> <td>  </td> </tr>
<tr> <td> 50-99 </td> <td> 10141 </td> <td> 12321 </td> </tr>
<tr> <td> 100-249 </td> <td> 17216 </td> <td> 18547 </td> </tr>
<tr> <td> large companies </td> <td>  </td> <td>  </td> </tr>
<tr> <td> 250-499 </td> <td> 14103 </td> <td> 19645 </td> </tr>
<tr> <td> 500-999 </td> <td> 17871 </td> <td> 17657 </td> </tr>
<tr> <td> 1,000-4,999 </td> <td> 65112 </td> <td> 68578 </td> </tr>
<tr> <td> 5,000-9,999 </td> <td> 40198 </td> <td> 45337 </td> </tr>
<tr> <td> 10,000-24,999 </td> <td> 73485 </td> <td> 84420 </td> </tr>
<tr> <td> 25,000 or more </td> <td> 149227 </td> <td> 158889 </td> </tr>
</table>