class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: H = None
        self.o: D = None
        self.t: A = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: G = None
        self.x: B = None
        self.w: A = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: G = None
        self.txt = txt

c = A("c")
m = B("m")
g = C("g")
d = D("d")
e = E("e")
a = F("a")
b = G("b")
n = H("n")
i = F("i")
l = G("l")

c.w = e
c.u = a
m.t = d
g.x = a
d.p = c
d.s = g
e.w = n
e.z = n
e.o = d
e.t = c
e.r = a
a.t = e
a.u = b
a.x = m
a.w = c
a.s = c
b.t = a
n.w = d
n.q = l
i.t = e
i.u = l
i.x = m
i.w = c
i.s = c
l.t = i
assert i.x.t.s.x.u.t.w.w.txt == "
class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: H = None
        self.o: D = None
        self.t: A = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: G = None
        self.x: B = None
        self.w: A = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: G = None
        self.txt = txt

c = A("c")
m = B("m")
g = C("g")
d = D("d")
e = E("e")
a = F("a")
b = G("b")
n = H("n")
i = F("i")
l = G("l")

c.w = e
c.u = a
m.t = d
g.x = a
d.p = c
d.s = g
e.w = n
e.z = n
e.o = d
e.t = c
e.r = a
a.t = e
a.u = b
a.x = m
a.w = c
a.s = c
b.t = a
n.w = d
n.q = l
i.t = e
i.u = l
i.x = m
i.w = c
i.s = c
l.t = i
assert i.x.t.s.x.u.t.w.w.txt == "e"