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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: E = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: G = None
        self.x: D = None
        self.t: F = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: F = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: E = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: G = None
        self.x: D = None
        self.t: F = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: F = None
        self.s: F = None
        self.txt = txt

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

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

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

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