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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: G = None
        self.o: I = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: J = None
        self.t: E = None
        self.y: H = None
        self.s: F = None
        self.r: H = None
        self.z: I = None
        self.w: I = None
        self.v: C = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: F = None
        self.y: I = None
        self.o: D = None
        self.p: C = None
        self.x: A = None
        self.z: I = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: B = None
        self.o: I = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: G = None
        self.o: I = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: J = None
        self.t: E = None
        self.y: H = None
        self.s: F = None
        self.r: H = None
        self.z: I = None
        self.w: I = None
        self.v: C = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: F = None
        self.y: I = None
        self.o: D = None
        self.p: C = None
        self.x: A = None
        self.z: I = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: B = None
        self.o: I = None
        self.s: E = None
        self.txt = txt

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

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