class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: C = None
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: F = None
        self.x: B = None
        self.u: B = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: G = None
        self.o: F = None
        self.q: B = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: D = None
        self.y: D = None
        self.q: C = None
        self.z: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: F = None
        self.x: B = None
        self.u: B = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: G = None
        self.o: F = None
        self.q: B = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: D = None
        self.y: D = None
        self.q: C = None
        self.z: A = None
        self.s: A = None
        self.txt = txt

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

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

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