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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: A = None
        self.o: A = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: C = None
        self.v: B = None
        self.z: D = None
        self.y: G = None
        self.o: A = None
        self.txt = txt

j = A("j")
e = B("e")
k = C("k")
f = D("f")
i = E("i")
l = F("l")
c = G("c")
g = G("g")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: A = None
        self.o: A = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: C = None
        self.v: B = None
        self.z: D = None
        self.y: G = None
        self.o: A = None
        self.txt = txt

j = A("j")
e = B("e")
k = C("k")
f = D("f")
i = E("i")
l = F("l")
c = G("c")
g = G("g")

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