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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: D = None
        self.p: D = None
        self.x: D = None
        self.w: G = None
        self.u: E = None
        self.q: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: E = None
        self.v: G = None
        self.s: F = None
        self.w: C = None
        self.r: A = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: A = None
        self.w: B = None
        self.z: A = None
        self.p: D = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

l = A("l")
m = B("m")
e = C("e")
h = D("h")
b = E("b")
c = F("c")
d = G("d")
i = H("i")

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: D = None
        self.p: D = None
        self.x: D = None
        self.w: G = None
        self.u: E = None
        self.q: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: E = None
        self.v: G = None
        self.s: F = None
        self.w: C = None
        self.r: A = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: A = None
        self.w: B = None
        self.z: A = None
        self.p: D = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

l = A("l")
m = B("m")
e = C("e")
h = D("h")
b = E("b")
c = F("c")
d = G("d")
i = H("i")

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