class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: G = None
        self.x: F = None
        self.z: F = None
        self.p: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: G = None
        self.x: B = None
        self.o: G = None
        self.p: G = None
        self.r: I = None
        self.v: H = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: B = None
        self.o: H = None
        self.t: C = None
        self.y: E = None
        self.w: C = None
        self.z: B = None
        self.q: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: G = None
        self.p: C = None
        self.u: A = None
        self.y: A = None
        self.x: C = None
        self.o: D = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: G = None
        self.x: B = None
        self.o: G = None
        self.p: G = None
        self.r: I = None
        self.v: H = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: B = None
        self.o: H = None
        self.t: C = None
        self.y: E = None
        self.w: C = None
        self.z: B = None
        self.q: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: G = None
        self.p: C = None
        self.u: A = None
        self.y: A = None
        self.x: C = None
        self.o: D = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

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

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

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