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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: D = None
        self.q: D = None
        self.r: E = None
        self.p: D = None
        self.txt = txt

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

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

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

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

l = A("l")
a = B("a")
j = C("j")
f = D("f")
e = E("e")
m = F("m")
n = G("n")
k = E("k")
g = F("g")
i = F("i")

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: D = None
        self.q: D = None
        self.r: E = None
        self.p: D = None
        self.txt = txt

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

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

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

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

l = A("l")
a = B("a")
j = C("j")
f = D("f")
e = E("e")
m = F("m")
n = G("n")
k = E("k")
g = F("g")
i = F("i")

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