# 6b68bf236bf91a069522b86bb5cdf5d14d71251d8f4ccea958956d423710d74e Elan 1.6.4 guest default_profile valid

main
  variable head set to 0
  variable apple set to 0
  variable body set to new List<of Int>()
  if head is apple then
    call setAppleToRandomPosition(apple, body)
  else
    call body.removeAt(0)
  end if
end main

procedure setAppleToRandomPosition(x as Int, y as List<of Int>)

end procedure
