#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<algorithm>
#include<queue>
#include<stack>
#include<ctime>
#include<vector>
#define inf (2e8)
using namespace std;
int n,m,l;
struct node
{
int next,to,cap;
}edge[200001];
int head[100001],size=1,a[190001];
void putin(int from,int to,int cap)
{
size++;
edge[size].next=head[from];
edge[size].to=to;
edge[size].cap=cap;
head[from]=size;
}
void in(int from,int to,int cap)
{
putin(from,to,cap);
putin(to,from,0);
}
int dist[100001],numbs[100001];
void bfs(int src,int des)
{
int i;
queue<int>mem;
mem.push(des);
dist[des]=0;numbs[0]++;
while(!mem.empty())
{
int x=mem.front();mem.pop();
for(i=head[x];i!=-1;i=edge[i].next)
{
int y=edge[i].to;
if(edge[i].cap==0&&dist[y]==0&&y!=des)
{
dist[y]=dist[x]+1;
numbs[dist[y]]++;
mem.push(y);
}
}
}
return;
}
int dfs(int src,int flow,int des)
{
if(src==des)return flow;
int i,low=0,mindist=n*2+2;
for(i=head[src];i!=-1;i=edge[i].next)
{
int y=edge[i].to;
if(edge[i].cap)
{
if(dist[y]==dist[src]-1)
{
int t=dfs(y,min(flow-low,edge[i].cap),des);
edge[i].cap-=t;
edge[i^1].cap+=t;
low+=t;
if(dist[src]>=n*2+2)return low;
if(low==flow)break;
}
mindist=min(mindist,dist[y]+1);
}
}
if(!low)
{
if(!(--numbs[dist[src]]))dist[0]=n*2+2;
++numbs[dist[src]=mindist];
}
return low;
}
int ISAP(int src,int des)
{
int ans=0;
bfs(src,des);
while(dist[0]<n*2+2)ans+=dfs(src,2e8,des);
return ans;
}
int main()
{
int i,j;
memset(head,-1,sizeof(head));
scanf("%d%d%d",&n,&m,&l);
for(i=1;i<=m;i++)
{
int from,to;
scanf("%d%d",&from,&to);
in(n+from,to,inf);
in(n+to,from,inf);
}
for(i=1;i<=l;i++){scanf("%d",&j);a[j]=1;}
in(1,n+1,inf);
for(i=2;i<=n;i++)
{
if(a[i]==1){in(i,n+i,inf);in(n+i,2*n+1,inf);}
else in(i,n+i,1);
}
in(0,1,inf);
int maxflow=ISAP(0,n*2+1);
cout<<maxflow;
return 0;
}