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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: A = None
        self.s: A = None
        self.w: A = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: A = None
        self.u: G = None
        self.q: D = None
        self.z: A = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: F = None
        self.p: G = None
        self.x: D = None
        self.t: G = None
        self.txt = txt

f = A("f")
d = B("d")
e = C("e")
j = D("j")
h = E("h")
a = F("a")
b = G("b")
m = A("m")
g = G("g")

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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: A = None
        self.s: A = None
        self.w: A = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: A = None
        self.u: G = None
        self.q: D = None
        self.z: A = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: F = None
        self.p: G = None
        self.x: D = None
        self.t: G = None
        self.txt = txt

f = A("f")
d = B("d")
e = C("e")
j = D("j")
h = E("h")
a = F("a")
b = G("b")
m = A("m")
g = G("g")

f.s = h
f.q = h
f.r = j
f.y = j
f.u = b
f.w = b
f.p = m
d.z = h
e.s = j
e.v = d
j.q = h
j.v = h
j.t = f
j.s = f
j.w = f
h.r = a
h.u = j
a.p = h
a.s = h
a.x = m
a.z = m
a.u = b
a.q = j
b.s = g
b.p = g
b.t = g
b.u = a
b.x = j
m.s = h
m.q = h
m.r = j
m.y = j
m.u = b
m.w = b
m.p = f
g.s = b
g.p = b
g.t = b
g.u = a
g.x = j
assert e.s.w.s.r.x.y.txt == "j"