How to connect 3-axis accelerometer on Fio+XBee and servo on UNO + XBee?

Hi there,

Now I'm trying to connect a 3-axis accelerometer and a servo motor remotely.

The network consists of XBee. Arduino Fio with A 3-axis accelerometer transmit data to Arduino UNO + XBee Shield via XBee.
I wrote a code for Fio but I cannot figure out it for UNO. could you help me?

The code I wrote for Fio.

void setup(){
  pinMode(A0,INPUT);
  Serial.begin(57600);
}

void loop(){ 
  int x = analogRead(0);
  Serial.print(x,DEC); 
  delay(100);
}