class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: H = None
        self.x: G = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: H = None
        self.p: E = None
        self.q: E = None
        self.x: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.p: B = None
        self.z: E = None
        self.y: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: H = None
        self.p: E = None
        self.q: E = None
        self.x: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.p: B = None
        self.z: E = None
        self.y: D = None
        self.txt = txt

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

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

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