class A:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: E = None
        self.w: B = None
        self.q: D = None
        self.y: E = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: E = None
        self.p: A = None
        self.y: A = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: D = None
        self.y: F = None
        self.w: C = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: E = None
        self.u: A = None
        self.s: E = None
        self.t: E = None
        self.z: F = None
        self.txt = txt

j = A("j")
n = B("n")
b = C("b")
f = D("f")
h = E("h")
c = F("c")
e = A("e")
m = F("m")
k = D("k")

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: E = None
        self.p: A = None
        self.y: A = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: D = None
        self.y: F = None
        self.w: C = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: E = None
        self.u: A = None
        self.s: E = None
        self.t: E = None
        self.z: F = None
        self.txt = txt

j = A("j")
n = B("n")
b = C("b")
f = D("f")
h = E("h")
c = F("c")
e = A("e")
m = F("m")
k = D("k")

j.x = e
j.o = h
j.y = h
j.w = n
j.q = f
j.s = m
n.z = e
b.t = h
b.z = h
b.p = j
b.y = j
b.q = k
f.v = j
h.v = n
h.s = f
h.y = m
h.w = b
h.t = b
c.y = b
c.r = h
c.s = h
c.t = h
c.u = j
c.z = m
e.x = j
e.o = h
e.y = h
e.w = n
e.q = f
e.s = c
m.y = b
m.r = h
m.s = h
m.t = h
m.u = e
m.z = c
k.v = j
assert f.v.y.y.z.r.w.t.y.s.txt == "h"