class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: H = None
        self.q: H = None
        self.t: I = None
        self.v: G = None
        self.y: G = None
        self.s: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: A = None
        self.x: I = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: G = None
        self.v: I = None
        self.q: C = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: B = None
        self.q: C = None
        self.p: B = None
        self.s: B = None
        self.u: E = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: B = None
        self.o: F = None
        self.x: B = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: A = None
        self.x: I = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: G = None
        self.v: I = None
        self.q: C = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: B = None
        self.q: C = None
        self.p: B = None
        self.s: B = None
        self.u: E = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: B = None
        self.o: F = None
        self.x: B = None
        self.v: C = None
        self.txt = txt

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

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