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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: H = None
        self.v: I = None
        self.q: I = None
        self.u: I = None
        self.t: G = None
        self.p: I = None
        self.r: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: I = None
        self.q: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: J = None
        self.p: C = None
        self.z: C = None
        self.y: C = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: H = None
        self.v: I = None
        self.q: I = None
        self.u: I = None
        self.t: G = None
        self.p: I = None
        self.r: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: I = None
        self.q: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: J = None
        self.p: C = None
        self.z: C = None
        self.y: C = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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

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

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