class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: C = None
        self.y: F = None
        self.t: G = None
        self.x: F = None
        self.u: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: A = None
        self.u: C = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: E = None
        self.p: C = None
        self.o: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: A = None
        self.u: C = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: E = None
        self.p: C = None
        self.o: D = None
        self.txt = txt

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

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

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

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