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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: F = None
        self.o: G = None
        self.w: F = None
        self.v: C = None
        self.y: F = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: G = None
        self.y: G = None
        self.t: F = None
        self.w: E = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: F = None
        self.o: G = None
        self.w: F = None
        self.v: C = None
        self.y: F = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: G = None
        self.y: G = None
        self.t: F = None
        self.w: E = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

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