class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: E = None
        self.v: D = None
        self.p: G = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: H = None
        self.v: D = None
        self.s: B = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: F = None
        self.o: C = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: H = None
        self.v: D = None
        self.s: B = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: F = None
        self.o: C = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: F = None
        self.txt = txt

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

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