4.  The applicant was born in 1982 and lives in Saransk, the Republic of Mordovia. 5.  On 15 March 2003 the applicant was arrested on suspicion of theft and detained pending trial. He was allegedly ill-treated by the police who sought to extract a confession. 6.  On 6 October 2003 the Oktyabrskiy District Court of Saransk convicted the applicant of theft and sentenced him to three years’ imprisonment. However, on 11 February 2004 the Supreme Court of the Republic of Mordovia quashed his conviction on appeal and remitted the case for a retrial. 7.  On 25 May 2004 the Oktyabrskiy District Court of Saransk again convicted the applicant of theft and sentenced him to two years and two months’ imprisonment. On 13 October 2004 the Supreme Court upheld the conviction and sentence on appeal. The time spent in detention pending trial was to be counted towards the sentence. Thus, the applicant would have served his sentence by 15 May 2005. 8.  On 31 March 2005, following a request for supervisory review by the applicant, the Presidium of the Supreme Court of the Republic of Mordovia reduced his sentence to two years’ imprisonment. The applicant was present and took part in the supervisory-review proceedings. Thus, according to article 408 § 3 of the Code of Criminal Procedure the applicant should have been released immediately. However, he was returned to the prison. Once the prison administration received the decision of the Presidium of the Supreme Court, the applicant was released on 7 April 2005. 9.  The applicant then brought proceedings for compensation in respect of the excess time he had spent in prison. 10.  On 18 May 2006 the Leninskiy District Court of Saransk dismissed his claims. It held that the delay in his release had been due to the supervisory-review procedure, which had ended on 31 March 2005, and to the fact that the prison administration had not received the decision of 31 March 2005 of the Presidium of the Supreme Court until a week later and so were not liable for the additional period the applicant had spent in prison. On 4 July 2006 the Supreme Court of the Republic of Mordovia upheld that judgment on appeal.