Code is running completely fine don't know where is error in the code.
package com.codegym.task.task04.task0432;
/*
You can't have too much of a good thing
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader re = new BufferedReader(new InputStreamReader(System.in));
int n= Integer.parseInt(re.readLine());
String s = re.readLine();
while( n > 0)
{
System.out.println(s);
n--;
}
}
}