using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections;
namespace ReadBVH
{
class Joint
{
public string name;
public string type;
public string[] offset;
public string[] channels;
public bool isEnd;
public string[] endOffset;
public ArrayList child = new ArrayList();
}
class Program
{
static StreamReader sr;
static void ReadAndCreate(Joint root,string name)
{
Joint currentJoint = new Joint();
currentJoint.name = name;
sr.ReadLine();
currentJoint.offset = sr.ReadLine().Trim().Split();
currentJoint.channels = sr.ReadLine().Trim().Split();