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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: G = None
        self.o: A = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: E = None
        self.t: F = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: C = None
        self.z: B = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: E = None
        self.v: H = None
        self.p: D = None
        self.y: D = None
        self.w: D = None
        self.o: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: G = None
        self.o: A = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: E = None
        self.t: F = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: C = None
        self.z: B = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: E = None
        self.v: H = None
        self.p: D = None
        self.y: D = None
        self.w: D = None
        self.o: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

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