class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.u: G = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.r: H = None
        self.w: A = None
        self.s: F = None
        self.u: H = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: H = None
        self.p: F = None
        self.v: H = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: B = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: F = None
        self.s: F = None
        self.v: D = None
        self.w: H = None
        self.o: D = None
        self.y: E = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

d = A("d")
g = B("g")
b = C("b")
i = D("i")
f = E("f")
l = F("l")
a = G("a")
j = H("j")
e = G("e")

d.v = f
g.t = b
g.x = b
g.o = b
g.u = e
b.t = f
b.v = i
b.y = i
b.r = j
b.u = j
b.w = d
b.s = l
i.o = d
i.r = j
i.v = j
i.p = l
i.x = f
f.y = i
f.u = g
f.p = j
l.x = i
a.r = d
a.q = l
a.s = l
a.v = i
a.o = i
a.w = j
a.y = f
a.u = g
j.t = b
e.r = d
e.q = l
e.s = l
e.v = i
e.o = i
e.w = j
e.y = f
e.u = g
assert i.x.u.u.r.v.p.t.w.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.u: G = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.r: H = None
        self.w: A = None
        self.s: F = None
        self.u: H = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: H = None
        self.p: F = None
        self.v: H = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: B = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: F = None
        self.s: F = None
        self.v: D = None
        self.w: H = None
        self.o: D = None
        self.y: E = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

d = A("d")
g = B("g")
b = C("b")
i = D("i")
f = E("f")
l = F("l")
a = G("a")
j = H("j")
e = G("e")

d.v = f
g.t = b
g.x = b
g.o = b
g.u = e
b.t = f
b.v = i
b.y = i
b.r = j
b.u = j
b.w = d
b.s = l
i.o = d
i.r = j
i.v = j
i.p = l
i.x = f
f.y = i
f.u = g
f.p = j
l.x = i
a.r = d
a.q = l
a.s = l
a.v = i
a.o = i
a.w = j
a.y = f
a.u = g
j.t = b
e.r = d
e.q = l
e.s = l
e.v = i
e.o = i
e.w = j
e.y = f
e.u = g
assert i.x.u.u.r.v.p.t.w.txt == "d"