class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: G = None
        self.y: C = None
        self.z: C = None
        self.t: G = None
        self.v: G = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: H = None
        self.t: C = None
        self.p: E = None
        self.r: G = None
        self.v: A = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: B = None
        self.r: D = None
        self.s: F = None
        self.t: E = None
        self.x: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: A = None
        self.y: B = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: B = None
        self.p: A = None
        self.r: B = None
        self.y: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: H = None
        self.t: C = None
        self.p: E = None
        self.r: G = None
        self.v: A = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: B = None
        self.r: D = None
        self.s: F = None
        self.t: E = None
        self.x: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: A = None
        self.y: B = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: B = None
        self.p: A = None
        self.r: B = None
        self.y: B = None
        self.txt = txt

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

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

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