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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: F = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: F = None
        self.t: F = None
        self.txt = txt

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

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

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