a gaijin.
or does that apply only to foreigners working in japan, or all foreigners in general. and is it a word, like gringo, where mexicans use in a mildly derogatory way but white people think its cool that the little brown people have a special name for them.