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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: E = None
        self.o: E = None
        self.q: E = None
        self.u: G = None
        self.r: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: E = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: F = None
        self.y: F = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: E = None
        self.o: E = None
        self.q: E = None
        self.u: G = None
        self.r: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: E = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: F = None
        self.y: F = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: B = None
        self.txt = txt

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

e.z = c
e.u = i
e.t = f
e.x = f
e.s = f
e.y = a
e.q = g
a.w = c
a.y = l
a.z = l
a.q = e
c.s = i
c.o = i
c.x = m
c.q = m
c.u = f
c.r = e
d.t = c
i.s = m
i.p = m
i.r = e
g.q = l
g.w = l
g.v = i
f.s = a
f.w = a
f.o = g
f.y = g
h.p = a
h.r = a
l.t = c
m.s = i
m.p = i
m.r = e
assert i.r.u.r.s.o.txt == "g"