class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: G = None
        self.r: I = None
        self.o: A = None
        self.v: C = None
        self.y: E = None
        self.w: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: I = None
        self.p: I = None
        self.s: H = None
        self.v: D = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: E = None
        self.y: D = None
        self.x: B = None
        self.p: D = None
        self.r: G = None
        self.z: D = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: A = None
        self.z: D = None
        self.p: I = None
        self.s: E = None
        self.v: A = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: I = None
        self.p: I = None
        self.s: H = None
        self.v: D = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: E = None
        self.y: D = None
        self.x: B = None
        self.p: D = None
        self.r: G = None
        self.z: D = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: A = None
        self.z: D = None
        self.p: I = None
        self.s: E = None
        self.v: A = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: C = None
        self.txt = txt

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

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