puts gets(p).sub('nextnode.outgoing', 'nextnode.incoming')