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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.o: C = None
        self.q: G = None
        self.z: H = None
        self.v: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: B = None
        self.x: B = None
        self.q: F = None
        self.t: F = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.o: C = None
        self.q: G = None
        self.z: H = None
        self.v: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: B = None
        self.x: B = None
        self.q: F = None
        self.t: F = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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