class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: G = None
        self.z: B = None
        self.y: H = None
        self.q: C = None
        self.r: G = None
        self.x: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: D = None
        self.r: H = None
        self.y: F = None
        self.o: F = None
        self.w: D = None
        self.q: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: G = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: C = None
        self.q: C = None
        self.x: H = None
        self.s: E = None
        self.p: H = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: D = None
        self.r: H = None
        self.y: F = None
        self.o: F = None
        self.w: D = None
        self.q: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: G = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: C = None
        self.q: C = None
        self.x: H = None
        self.s: E = None
        self.p: H = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: D = None
        self.txt = txt

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

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