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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: C = None
        self.s: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: C = None
        self.s: E = None
        self.txt = txt

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

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

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