class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: F = None
        self.w: C = None
        self.y: A = None
        self.t: C = None
        self.s: H = None
        self.q: B = None
        self.p: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: A = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: H = None
        self.r: E = None
        self.v: A = None
        self.w: C = None
        self.x: G = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: C = None
        self.w: H = None
        self.q: H = None
        self.v: F = None
        self.t: D = None
        self.u: H = None
        self.s: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: E = None
        self.t: D = None
        self.y: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: A = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: H = None
        self.r: E = None
        self.v: A = None
        self.w: C = None
        self.x: G = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: C = None
        self.w: H = None
        self.q: H = None
        self.v: F = None
        self.t: D = None
        self.u: H = None
        self.s: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: E = None
        self.t: D = None
        self.y: E = None
        self.txt = txt

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

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