class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: B = None
        self.r: F = None
        self.o: E = None
        self.w: I = None
        self.q: B = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: A = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: C = None
        self.q: D = None
        self.x: C = None
        self.s: E = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: G = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: A = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: C = None
        self.q: D = None
        self.x: C = None
        self.s: E = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: G = None
        self.w: C = None
        self.txt = txt

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

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