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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: G = None
        self.s: E = None
        self.v: G = None
        self.o: C = None
        self.u: G = None
        self.q: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: A = None
        self.t: A = None
        self.q: C = None
        self.y: G = None
        self.w: F = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: A = None
        self.s: I = None
        self.z: B = None
        self.r: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: G = None
        self.v: F = None
        self.t: E = None
        self.p: G = None
        self.y: B = None
        self.r: B = None
        self.txt = txt

l = A("l")
d = B("d")
m = C("m")
n = D("n")
a = E("a")
j = F("j")
c = G("c")
e = H("e")
k = I("k")

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: G = None
        self.s: E = None
        self.v: G = None
        self.o: C = None
        self.u: G = None
        self.q: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: A = None
        self.t: A = None
        self.q: C = None
        self.y: G = None
        self.w: F = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: A = None
        self.s: I = None
        self.z: B = None
        self.r: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: G = None
        self.v: F = None
        self.t: E = None
        self.p: G = None
        self.y: B = None
        self.r: B = None
        self.txt = txt

l = A("l")
d = B("d")
m = C("m")
n = D("n")
a = E("a")
j = F("j")
c = G("c")
e = H("e")
k = I("k")

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