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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: A = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: A = None
        self.w: F = None
        self.v: B = None
        self.q: B = None
        self.r: E = None
        self.p: B = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: A = None
        self.txt = txt

j = A("j")
a = B("a")
g = C("g")
k = D("k")
c = E("c")
n = F("n")
l = G("l")
e = H("e")

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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: A = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: A = None
        self.w: F = None
        self.v: B = None
        self.q: B = None
        self.r: E = None
        self.p: B = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: A = None
        self.txt = txt

j = A("j")
a = B("a")
g = C("g")
k = D("k")
c = E("c")
n = F("n")
l = G("l")
e = H("e")

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