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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: A = None
        self.w: B = None
        self.o: B = None
        self.u: D = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: F = None
        self.y: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: A = None
        self.w: B = None
        self.o: B = None
        self.u: D = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: F = None
        self.y: C = None
        self.txt = txt

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

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