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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: G = None
        self.u: C = None
        self.t: E = None
        self.w: G = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: A = None
        self.o: C = None
        self.q: F = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: C = None
        self.q: A = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: B = None
        self.u: E = None
        self.x: A = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: D = None
        self.u: C = None
        self.t: E = None
        self.r: A = None
        self.w: G = None
        self.txt = txt

j = A("j")
c = B("c")
g = C("g")
d = D("d")
l = E("l")
n = F("n")
b = G("b")
a = E("a")
k = G("k")

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: G = None
        self.u: C = None
        self.t: E = None
        self.w: G = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: A = None
        self.o: C = None
        self.q: F = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: C = None
        self.q: A = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: B = None
        self.u: E = None
        self.x: A = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: D = None
        self.u: C = None
        self.t: E = None
        self.r: A = None
        self.w: G = None
        self.txt = txt

j = A("j")
c = B("c")
g = C("g")
d = D("d")
l = E("l")
n = F("n")
b = G("b")
a = E("a")
k = G("k")

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