/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.* ;
import java.time.temporal.* ;
import java.time.format.* ;


/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{

    long weekOfYear = 27 ; // 1-52 or 1-53 for ISO 8601 week-based years.
    long dayOfWeek = 2 ;  // 1-7 for Monday-Sunday, per ISO 8601 standard.
 
    LocalDate today = LocalDate.now( ZoneId.of( "America/Montreal" ) ) ;
    LocalDate adjusted = today.with( WeekFields.ISO.weekOfWeekBasedYear(), weekOfYear )
                              .with( WeekFields.ISO.dayOfWeek(), dayOfWeek ) ;
                   
    System.out.println( "2017-W27-02: " + adjusted ) ;           
                              
	}
}