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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: B = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: B = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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

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

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