class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: D = None
        self.o: B = None
        self.q: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: B = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: F = None
        self.s: E = None
        self.r: F = None
        self.w: F = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: G = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: C = None
        self.o: E = None
        self.r: H = None
        self.w: G = None
        self.txt = txt

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

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

c = A("c")
l = B("l")
k = C("k")
a = D("a")
j = E("j")
d = F("d")
h = G("h")
m = H("m")
f = G("f")

c.y = l
c.o = l
c.v = a
c.q = k
l.z = a
l.y = k
l.v = f
l.s = m
l.p = c
k.s = a
k.x = l
k.q = d
a.p = k
a.q = d
a.r = d
a.w = d
a.y = d
a.s = j
j.r = d
j.y = f
j.o = a
d.z = k
d.y = k
d.o = j
d.r = m
d.w = f
h.v = j
h.p = j
h.u = f
h.o = f
h.x = f
h.q = m
h.z = d
m.o = l
m.v = l
m.y = f
m.z = a
m.x = j
m.p = c
f.v = j
f.p = j
f.u = h
f.o = h
f.x = h
f.q = m
f.z = d
assert c.y.v.p.txt == "
class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: D = None
        self.o: B = None
        self.q: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: B = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: F = None
        self.s: E = None
        self.r: F = None
        self.w: F = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: G = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: C = None
        self.o: E = None
        self.r: H = None
        self.w: G = None
        self.txt = txt

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

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

c = A("c")
l = B("l")
k = C("k")
a = D("a")
j = E("j")
d = F("d")
h = G("h")
m = H("m")
f = G("f")

c.y = l
c.o = l
c.v = a
c.q = k
l.z = a
l.y = k
l.v = f
l.s = m
l.p = c
k.s = a
k.x = l
k.q = d
a.p = k
a.q = d
a.r = d
a.w = d
a.y = d
a.s = j
j.r = d
j.y = f
j.o = a
d.z = k
d.y = k
d.o = j
d.r = m
d.w = f
h.v = j
h.p = j
h.u = f
h.o = f
h.x = f
h.q = m
h.z = d
m.o = l
m.v = l
m.y = f
m.z = a
m.x = j
m.p = c
f.v = j
f.p = j
f.u = h
f.o = h
f.x = h
f.q = m
f.z = d
assert c.y.v.p.txt == "j"