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

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

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

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

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

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

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

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

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

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

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

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

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

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

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