class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: G = None
        self.o: D = None
        self.s: B = None
        self.y: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: A = None
        self.y: E = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: F = None
        self.p: F = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: C = None
        self.w: D = None
        self.r: D = None
        self.o: D = None
        self.s: G = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: A = None
        self.y: E = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: F = None
        self.p: F = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: C = None
        self.w: D = None
        self.r: D = None
        self.o: D = None
        self.s: G = None
        self.u: C = None
        self.txt = txt

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

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

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

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