class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: D = None
        self.o: C = None
        self.t: C = None
        self.u: B = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: B = None
        self.u: G = None
        self.v: A = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: B = None
        self.u: G = None
        self.v: A = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.txt = txt

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

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