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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: D = None
        self.s: B = None
        self.t: F = None
        self.q: D = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: B = None
        self.t: E = None
        self.u: D = None
        self.x: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: G = None
        self.r: H = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: D = None
        self.s: B = None
        self.t: F = None
        self.q: D = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: B = None
        self.t: E = None
        self.u: D = None
        self.x: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: G = None
        self.r: H = None
        self.txt = txt

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

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

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

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