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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: H = None
        self.q: F = None
        self.u: C = None
        self.v: D = None
        self.w: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: B = None
        self.o: E = None
        self.r: I = None
        self.q: A = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: F = None
        self.u: H = None
        self.w: B = None
        self.p: J = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.u: I = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: H = None
        self.r: E = None
        self.y: D = None
        self.t: D = None
        self.q: H = None
        self.o: A = None
        self.v: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: H = None
        self.q: F = None
        self.u: C = None
        self.v: D = None
        self.w: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: B = None
        self.o: E = None
        self.r: I = None
        self.q: A = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: F = None
        self.u: H = None
        self.w: B = None
        self.p: J = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.u: I = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: H = None
        self.r: E = None
        self.y: D = None
        self.t: D = None
        self.q: H = None
        self.o: A = None
        self.v: F = None
        self.txt = txt

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

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