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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: A = None
        self.q: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: E = None
        self.v: D = None
        self.p: H = None
        self.z: A = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: F = None
        self.o: D = None
        self.q: A = None
        self.z: C = None
        self.w: C = None
        self.t: B = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: I = None
        self.y: E = None
        self.w: I = None
        self.q: I = None
        self.x: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: A = None
        self.q: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: E = None
        self.v: D = None
        self.p: H = None
        self.z: A = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: F = None
        self.o: D = None
        self.q: A = None
        self.z: C = None
        self.w: C = None
        self.t: B = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: I = None
        self.y: E = None
        self.w: I = None
        self.q: I = None
        self.x: A = None
        self.txt = txt

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

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