class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.p: C = None
        self.r: B = None
        self.z: D = None
        self.s: F = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: F = None
        self.y: D = None
        self.o: E = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: F = None
        self.y: D = None
        self.o: E = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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