class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: G = None
        self.y: E = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: F = None
        self.w: C = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: A = None
        self.r: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: D = None
        self.t: C = None
        self.y: D = None
        self.w: F = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: F = None
        self.w: C = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: A = None
        self.r: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: D = None
        self.t: C = None
        self.y: D = None
        self.w: F = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

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

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