class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: F = None
        self.u: E = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: I = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: G = None
        self.q: G = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: B = None
        self.p: H = None
        self.o: F = None
        self.v: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: I = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: G = None
        self.q: G = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: B = None
        self.p: H = None
        self.o: F = None
        self.v: G = None
        self.txt = txt

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

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