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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: D = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: G = None
        self.p: G = None
        self.s: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: G = None
        self.v: C = None
        self.t: A = None
        self.s: B = None
        self.p: C = None
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: D = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: G = None
        self.p: G = None
        self.s: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: G = None
        self.v: C = None
        self.t: A = None
        self.s: B = None
        self.p: C = None
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

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