class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: G = None
        self.v: A = None
        self.t: F = None
        self.p: A = None
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: E = None
        self.p: C = None
        self.q: C = None
        self.x: B = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: B = None
        self.r: A = None
        self.p: B = None
        self.u: F = None
        self.o: F = None
        self.txt = txt

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

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

d = A("d")
c = B("c")
i = C("i")
b = D("b")
l = E("l")
g = F("g")
j = G("j")
a = F("a")
m = G("m")
h = A("h")

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

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

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: E = None
        self.p: C = None
        self.q: C = None
        self.x: B = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: B = None
        self.r: A = None
        self.p: B = None
        self.u: F = None
        self.o: F = None
        self.txt = txt

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

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

d = A("d")
c = B("c")
i = C("i")
b = D("b")
l = E("l")
g = F("g")
j = G("j")
a = F("a")
m = G("m")
h = A("h")

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