class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: C = None
        self.z: G = None
        self.q: B = None
        self.w: B = None
        self.v: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: G = None
        self.v: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: E = None
        self.r: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: B = None
        self.r: B = None
        self.w: D = None
        self.txt = txt

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

e.y = l
e.o = l
e.z = h
e.q = b
e.w = b
e.v = i
b.y = m
b.z = h
i.y = h
i.q = h
i.v = l
a.y = e
a.o = m
a.r = h
m.t = h
m.v = h
m.w = h
m.s = e
m.o = b
c.o = e
c.v = e
c.r = a
h.z = l
h.t = b
h.r = b
h.w = a
g.t = h
g.v = h
g.w = h
g.s = e
g.o = b
l.y = h
l.q = h
l.v = i
assert h.w.y.o.q.r.y.s.z.txt == "
class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: C = None
        self.z: G = None
        self.q: B = None
        self.w: B = None
        self.v: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: G = None
        self.v: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: E = None
        self.r: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: B = None
        self.r: B = None
        self.w: D = None
        self.txt = txt

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

e.y = l
e.o = l
e.z = h
e.q = b
e.w = b
e.v = i
b.y = m
b.z = h
i.y = h
i.q = h
i.v = l
a.y = e
a.o = m
a.r = h
m.t = h
m.v = h
m.w = h
m.s = e
m.o = b
c.o = e
c.v = e
c.r = a
h.z = l
h.t = b
h.r = b
h.w = a
g.t = h
g.v = h
g.w = h
g.s = e
g.o = b
l.y = h
l.q = h
l.v = i
assert h.w.y.o.q.r.y.s.z.txt == "h"