Use Form 8840 to claim the closer connection to a foreign country(ies) exception to the substantial presence test. The exception is described later and in Regulations section 301.7701(b)-2.